DLApp
There are no services matching that phrase.

/permission/set-role-permission

HTTP Method
POST
com.liferay.portal.service.PermissionServiceUtil#setRolePermission

Sets the role's permissions to perform the action on the named resource, replacing the role's existing permissions on the resource.

Parameters

p_auth String

authentication token used to validate the request

roleId long

the primary key of the role

groupId long

the primary key of the group

name java.lang.String

the resource name

scope int

the resource scope

primKey java.lang.String

the resource primKey

actionId java.lang.String

the action's ID

Return Type

void

Exception

com.liferay.portal.kernel.exception.PortalException
if the group did not have permission to the role or if the scope was {@link com.liferay.portal.model.ResourceConstants#SCOPE_INDIVIDUAL}
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Execute

String long long java.lang.String int java.lang.String java.lang.String