I am working on a portal using JSR 168 Portlet in webSphere portal 6.0. I need to show/hide the portlets/pages depending on the attributes of the logged in user. I heard that we can do this using the dynamic configuration by putting the roles in a config file and these roles will be picked by portal administration. Then assign these dynamic roles to pages or portlets using portal administration. Can someone please help me to know what is that config file is and provide me some good tute on that.
Showing/hiding of portlets/pages can be achieved using the Visibility Rules created using the Personalization Rule Picker provided by WPS 6.0. In some of the cases Attribute based Administration using Access Control can also be useful.
When you deploy portlets, or create portal pages, you can set rights on the portlet, and you can set rights on the various page nodes that are created. Then, based on the role of the user logged into the system, they will or will not be able to see the given page.
Joined: Nov 26, 2007
Thanks Hemant and Cameron for your responses. Your suggestion are really helpful and I already tried assigning roles in admin consol and it is working. What I was looking for some kind of dynamic groups. Like I heard that there is a config file in wps in which we can define groups or users and when we come to admin portal, we will see these groups dynamically and assign them to the portlets/pages. Can you share some info about that?
subject: Showing or hiding portlet or pages based on the user attributes