Foren
Permissioning Or RoleLocalServiceUtil
Priyanka Dhingra, geändert vor 11 Jahren.
Permissioning Or RoleLocalServiceUtil
Liferay Master Beiträge: 501 Beitrittsdatum: 20.12.11 Neueste 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??
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, geändert vor 11 Jahren.
RE: Permissioning Or RoleLocalServiceUtil
Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste 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, geändert vor 11 Jahren.
RE: Permissioning Or RoleLocalServiceUtil
Liferay Master Beiträge: 501 Beitrittsdatum: 20.12.11 Neueste Beiträge
thanks David,
for implementing permissioning i made a resource-actions/default.xml
what should be the
for implementing permissioning i made a resource-actions/default.xml
what should be the
<model-name>me.pd.test.model.Foo</model-name>
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: Permissioning Or RoleLocalServiceUtil
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste 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
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/security-and-permissio-4
Priyanka Dhingra, geändert vor 11 Jahren.
RE: Permissioning Or RoleLocalServiceUtil
Liferay Master Beiträge: 501 Beitrittsdatum: 20.12.11 Neueste Beiträge
yes Hitoshi...its for my custom portlet..
thanks for the link...
thanks for the link...