Absolutely you could configure Access Permission for portlet to a group with "*" membership type, that means anyone in the group can access to the portlet.
Is it something that you need ?
May be I do not understand clearly your question, but you can achieve that in GateIn from the "Edit Permission" tab when you configure the portlet (when you are on edit mode/page composer on a page).
As you can see in the screenshot that I have attached you can :
- put the portlet available to any user
- or select the group with a specific membership, or select (*) to set to "all" people in the group
Thanks Trong and Tran.
Sorry that i didn't mention that we have configured portlets via xml(portal.xml,pages.xml,navigation.xml).Also, seems my question was not clear.
I want the portlets to be loaded dynamically.During the installtion time only, i may know which all portlets should be shown to the respective customer.
For Eg : for one customer say A, he need to be shown 3 portlets, but for other, say B, he need to be shown 4 portlets.
How can i achieve this during installation time?
Can i switch to a particular xml configuration at one time, and to another acoording to the customer?
I will explain it if my friends didn't follow it
Thanks in advance
You can configure access permission for each portlets in pages.xml (this file is parsed during installation time). Your page will have 4 portlets, User A only have access permission on 3 portlets --> so when he login to portal, he can only view 3 portlets. Is that what you need ?
There is a point that you could be able to configure Access Permission to more than one group ( separated by ';' semi-colon ). This would help in your case if i understand well.
And the following are examples what you can do. Probably you could adapt it somehow to be suitable for your needs :
<portlet-application> <portlet> <application-ref>webapp</application-ref> <portlet-ref>FooPortlet</portlet-ref> </portlet> <access-permissions>Everyone</access-permissions> </portlet-application> <portlet-application> <portlet> <application-ref>webapp</application-ref> <portlet-ref>BarPortlet</portlet-ref> </portlet> <access-permissions>*:/groups/A</access-permissions> </portlet-application> <portlet-application> <portlet> <application-ref>webapp</application-ref> <portlet-ref>ZuuPortlet</portlet-ref> </portlet> <access-permissions>*:/groups/A;*:/groups/B</access-permissions> </portlet-application>