Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding a JBoss portlet

 
dwarakanathan thiru
Ranch Hand
Posts: 49
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
rakesh ramesan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic