Two Laptop Bag*
The moose likes Portals and Portlets and the fly likes Hiding a JBoss portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Hiding a JBoss portlet" Watch "Hiding a JBoss portlet" New topic
Author

Hiding a JBoss portlet

dwarakanathan thiru
Ranch Hand

Joined: Oct 14, 2009
Posts: 49
Hi,

I have a JBoss portal page with 5-6 portlets.
How can I hide certain portlets based on the security constraints of the user?

Or Can I hide portlet based on any other scenario?

Thanks!!


Thanks,
Dwarak T
rakesh ramesan
Greenhorn

Joined: Jan 11, 2012
Posts: 2
hi..
i have the same requirements ..can find a way to show / hide jboss portlets based on liscencing terms ..
but i found that the portlet related info are parsed into the database into JCR and user info in idm .. is there a way to manipulate this info to show hide portlets based on my dynamic terms
dwarakanathan thiru
Ranch Hand

Joined: Oct 14, 2009
Posts: 49
Hi,
Every portlet can be shown or hid based on the user role. You have to define the role at the portlet-instance level.
And assign the roles to the users who need to view the portlet in your portal page.

Learn more about <security-constraint> at portlet & portal object level.
rakesh ramesan
Greenhorn

Joined: Jan 11, 2012
Posts: 2
hi ..

my app requires user to buy license on certain features as and when required and each license has an expiration .. so how could i fit my requirements to disable/enable the portlet according to these terms

Thanks..
jimmy Auction
Greenhorn

Joined: Jan 26, 2012
Posts: 5
hi ..

i have created a jboss portlet application where i need to show/hide certain portlets based on the user liscence (say the customer enter a liscence key > the application validates the liscence and then enable a portlet which comes with the liscence .) how can i implement the said.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding a JBoss portlet