Foros de discusión

Permissioning Or RoleLocalServiceUtil

thumbnail
Priyanka Dhingra, modificado hace 11 años.

Permissioning Or RoleLocalServiceUtil

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
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??
thumbnail
David H Nebinger, modificado hace 11 años.

RE: Permissioning Or RoleLocalServiceUtil

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Obviously permissioning is the better path. Doing something via code will impact your ability to apply future upgrades, introduces code maintenance issues, etc.
thumbnail
Priyanka Dhingra, modificado hace 11 años.

RE: Permissioning Or RoleLocalServiceUtil

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
thanks David,
for implementing permissioning i made a resource-actions/default.xml
what should be the
<model-name>me.pd.test.model.Foo</model-name>
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Permissioning Or RoleLocalServiceUtil

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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
thumbnail
Priyanka Dhingra, modificado hace 11 años.

RE: Permissioning Or RoleLocalServiceUtil

Liferay Master Mensajes: 501 Fecha de incorporación: 20/12/11 Mensajes recientes
yes Hitoshi...its for my custom portlet..
thanks for the link...