Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Priyanka Dhingra
Permissioning Or RoleLocalServiceUtil
30. Dezember 2012 23:21
Antwort

Priyanka Dhingra

Rang: Liferay Master

Nachrichten: 501

Eintrittsdatum: 19. Dezember 2011

Neue Beiträge

I have a general requirement wherein
if a user belongs to X role he can perform ADD and EDIT functionality
If a user belongs to Y role he can perform BULK UPLOAD functionality

Similar to this I am provided with around 22 functionalities for which I'll define 4 roles

So, Permissioning is a better way or doing it through RoleLocalServiceUtil.hasUserRole() is better??
David H Nebinger
RE: Permissioning Or RoleLocalServiceUtil
31. Dezember 2012 05:50
Antwort

David H Nebinger

Community Moderator

Rang: Liferay Legend

Nachrichten: 8560

Eintrittsdatum: 1. September 2006

Neue Beiträge

Obviously permissioning is the better path. Doing something via code will impact your ability to apply future upgrades, introduces code maintenance issues, etc.
Priyanka Dhingra
RE: Permissioning Or RoleLocalServiceUtil
31. Dezember 2012 05:56
Antwort

Priyanka Dhingra

Rang: Liferay Master

Nachrichten: 501

Eintrittsdatum: 19. Dezember 2011

Neue Beiträge

thanks David,
for implementing permissioning i made a resource-actions/default.xml
what should be the
1<model-name>me.pd.test.model.Foo</model-name>
Hitoshi Ozawa
RE: Permissioning Or RoleLocalServiceUtil
31. Dezember 2012 06:07
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

You seems to be developing your own portlet because there's not bulk upload in liferay. Is your question about how to setup security and permissions in your portlet? Just setup your portlet to have only 4 roles with permission you've specified.

http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/security-and-permissio-4
Priyanka Dhingra
RE: Permissioning Or RoleLocalServiceUtil
31. Dezember 2012 23:13
Antwort

Priyanka Dhingra

Rang: Liferay Master

Nachrichten: 501

Eintrittsdatum: 19. Dezember 2011

Neue Beiträge

yes Hitoshi...its for my custom portlet..
thanks for the link...