aspose file tools*
The moose likes Portals and Portlets and the fly likes Showing or hiding portlet  or pages based on the user attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Showing or hiding portlet  or pages based on the user attributes" Watch "Showing or hiding portlet  or pages based on the user attributes" New topic
Author

Showing or hiding portlet or pages based on the user attributes

Amit Mittal
Greenhorn

Joined: Nov 26, 2007
Posts: 6
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: 4968
    
    1

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
Amit Mittal
Greenhorn

Joined: Nov 26, 2007
Posts: 6
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Showing or hiding portlet or pages based on the user attributes