Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kiran Kumar Boyini
How to apply dynamic page permission w r to selected role after user logs
January 31, 2013 11:44 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 277

Join Date: June 2, 2011

Recent Posts

Hi All,

I have the following requirement.

Suppose If the login user as different roles say "role1,role2,role3".After login, I am giving permission to the user,he can switch to selected role
with Portlet(Test portlet).Using this portlet I can able to tracking the role Id w r to his selection of role untill he logs out.

In the same way I want to restrict the user w r to pages also when he slected role untill he logs out.

Say suppose we have pages page1,page2,page3.Suppose If the user select role1,he should see page1 only or he select role2,he should see page2 only.

All this is happen after his login using my developed portlet(Test portlet).

How can I achieve this requirement. I mean how can I get the all the page names and how can apply the permission on the pages in action class .

Provide the code as I mentioned or any suggestions.
Kiran Kumar Boyini
RE: How to apply dynamic page permission w r to selected role after user l
February 3, 2013 9:58 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 277

Join Date: June 2, 2011

Recent Posts

Hi All,

I want suggestions or way how can I approach the above requirement.

How to apply dynamic page permission w r to selected role after user logs

Regards,

Kiran
Kiran Kumar Boyini
RE: How to apply dynamic page permission w r to selected role after user l
February 3, 2013 10:03 PM
Answer

Kiran Kumar Boyini

Rank: Expert

Posts: 277

Join Date: June 2, 2011

Recent Posts

Hi All,

At least can any one tell the how the liferay will pick the pages of the user when he logs in to the application.

I want step by step procedure,Then using that procedure,I can achieve my requirement.

Regards,

Kiran.
Manoj Prasad
RE: How to apply dynamic page permission w r to selected role after user l
September 30, 2013 6:49 PM
Answer

Manoj Prasad

Rank: New Member

Posts: 14

Join Date: March 20, 2013

Recent Posts

hi
i have similar requirement. Did you get any solution to your issue?

I would start with this link
https://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/security-and-permissions

another good article related to this is
Dynamic role assignment
https://www.liferay.com/community/forums/-/message_boards/message/4037737

Let me know if u have any solution
Manoj Prasad
RE: How to apply dynamic page permission w r to selected role after user l
September 30, 2013 6:49 PM
Answer

Manoj Prasad

Rank: New Member

Posts: 14

Join Date: March 20, 2013

Recent Posts

RE: How to apply dynamic page permission w r to selected role after user l