DLApp
Il n'y a aucun service assortissant cette expression.

/resourcepermission/add-resource-permission

Méthode de HTTP
POST
com.liferay.portal.service.ResourcePermissionServiceUtil#addResourcePermission

Grants the role permission at the scope to perform the action on resources of the type. Existing actions are retained.

This method cannot be used to grant individual scope permissions, but is only intended for adding permissions at the company, group, and group-template scopes. For example, this method could be used to grant a company scope permission to edit message board posts.

If a company scope permission is granted to resources that the role already had group scope permissions to, the group scope permissions are deleted. Likewise, if a group scope permission is granted to resources that the role already had company scope permissions to, the company scope permissions are deleted. Be aware that this latter behavior can result in an overall reduction in permissions for the role.

Depending on the scope, the value of primKey will have different meanings. For more information, see {@link com.liferay.portal.model.impl.ResourcePermissionImpl}.

Paramètres

p_auth String

authentication token used to validate the request

groupId long

the primary key of the group

companyId long

the primary key of the company

name java.lang.String

the resource's name, which can be either a class name or a portlet ID

scope int

the scope. This method only supports company, group, and group-template scope.

primKey java.lang.String

the primary key

roleId long

the primary key of the role

actionId java.lang.String

the action ID

Type de retour

void

Exception

com.liferay.portal.kernel.exception.PortalException
if the user did not have permission to add resource permissions, or if scope was set to individual scope or if a role with the primary key or a resource action with the name and action ID could not be found
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

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