Foros de discusión
Permissions API on layout Page
Tom Mahy, modificado hace 12 años.
Permissions API on layout Page
Regular Member Mensajes: 103 Fecha de incorporación: 11/05/11 Mensajes recientes
This should be easy for anyone thats already done this.
How can i read the permissions on a Layout Page.
I want to know what roles are assigned to this page and what rights they have.
ive tried :
returns empty
cant seem to get roles from the permission list
empty
Any help would be appreciated.
How can i read the permissions on a Layout Page.
I want to know what roles are assigned to this page and what rights they have.
ive tried :
returns empty
ResourcePermissionLocalServiceUtil.getResourcePermissions(
layout.getCompanyId(), Layout.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(layout.getPrimaryKey()));
cant seem to get roles from the permission list
List<permission> permissions = PermissionLocalServiceUtil.getGroupPermissions(layout.getGroupId(),
layout.getCompanyId(),
Layout.class.getName(),
ResourceConstants.SCOPE_COMPANY,
String.valueOf(layout.getPrimaryKey()));</permission>
empty
PermissionLocalServiceUtil.getRolePermissions(roleId, resourceId)
Any help would be appreciated.
Tom Mahy, modificado hace 12 años.
RE: Permissions API on layout Page
Regular Member Mensajes: 103 Fecha de incorporación: 11/05/11 Mensajes recientes
Searched the whole day. Could not find it.
So im writing my own API.
So im writing my own API.
Surodip Patra, modificado hace 11 años.
RE: Permissions API on layout Page
Junior Member Mensajes: 29 Fecha de incorporación: 25/01/13 Mensajes recientes
Hi Tom,
Can you get this done? If yes can you help me to set Role Permissions for a Portlet in Liferay?
Thanks & Regards,
Surodip Patra
Can you get this done? If yes can you help me to set Role Permissions for a Portlet in Liferay?
Thanks & Regards,
Surodip Patra