| Author |
Showing or hiding portlet or pages based on the user attributes
|
Amit Mittal
Greenhorn
Joined: Nov 26, 2007
Posts: 4
|
|
Hi, 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. Thanks Amit
|
 |
Hemant Sharma
Greenhorn
Joined: Feb 01, 2007
Posts: 23
|
|
Hi Amit, 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. Following links from IBM Infocenter for WPS 6.0 may be useful Visibility Rules Hiding pages on the site Attribute Based Administration [ June 17, 2008: Message edited by: Hemant Sharma ]
|
Thanks & Regards,<br />Hemant K. Sharma
|
 |
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Joined: Aug 26, 2006
Posts: 4967
|
|
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. -Cameron McKenzie
|
Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
|
 |
Amit Mittal
Greenhorn
Joined: Nov 26, 2007
Posts: 4
|
|
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? Thanks Amit
|
 |
 |
|
|
subject: Showing or hiding portlet or pages based on the user attributes
|
|
|