Fórum
Permissions API on layout Page
Tom Mahy, modificado 12 Anos atrás.
Permissions API on layout Page
Regular Member Postagens: 103 Data de Entrada: 11/05/11 Postagens Recentes
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 12 Anos atrás.
RE: Permissions API on layout Page
Regular Member Postagens: 103 Data de Entrada: 11/05/11 Postagens Recentes
Searched the whole day. Could not find it.
So im writing my own API.
So im writing my own API.
Surodip Patra, modificado 11 Anos atrás.
RE: Permissions API on layout Page
Junior Member Postagens: 29 Data de Entrada: 25/01/13 Postagens Recentes
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