掲示板

Permissions API on layout Page

thumbnail
12年前 に Tom Mahy によって更新されました。

Permissions API on layout Page

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
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
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.
thumbnail
12年前 に Tom Mahy によって更新されました。

RE: Permissions API on layout Page

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Searched the whole day. Could not find it.
So im writing my own API.
thumbnail
11年前 に Surodip Patra によって更新されました。

RE: Permissions API on layout Page

Junior Member 投稿: 29 参加年月日: 13/01/25 最新の投稿
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