Example usage for Java com.liferay.portal.kernel.service ResourcePermissionLocalServiceUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId) Grants the role permission at the scope to perform the action on resources of the type. |
com.liferay.portal.kernel.model.ResourcePermission | deleteResourcePermission( long resourcePermissionId) Deletes the resource permission with the primary key from the database. |
com.liferay.portal.kernel.model.ResourcePermission | deleteResourcePermission( com.liferay.portal.kernel.model.ResourcePermission resourcePermission) Deletes the resource permission from the database. |
com.liferay.portal.kernel.model.ResourcePermission | fetchResourcePermission( long resourcePermissionId) |
java.util.Map | getAvailableResourcePermissionActionIds(long companyId, String name, int scope, String primKey, java.util.Collection |
com.liferay.portal.kernel.model.ResourcePermission | getResourcePermission( long resourcePermissionId) Returns the resource permission with the primary key. |
com.liferay.portal.kernel.model.ResourcePermission | getResourcePermission(long companyId, String name, int scope, String primKey, long roleId) Returns the resource permission for the role at the scope to perform the actions on resources of the type. |
java.util.List | getResourcePermissions( long companyId, String name, int scope, String primKey) Returns all the resource permissions at the scope of the type. |
int | getResourcePermissionsCount(long companyId, String name, int scope, String primKey) Returns the number of resource permissions at the scope of the type. |
boolean | hasResourcePermission(long companyId, String name, int scope, String primKey, long roleId, String actionId) Returns true if the role has permission at the scope to perform the action on resources of the type. |
boolean | hasResourcePermission(long companyId, String name, int scope, String primKey, long[] roleIds, String actionId) Returns true if the roles have permission at the scope to perform the action on resources of the type. |
void | setResourcePermissions(long companyId, String name, int scope, String primKey, long roleId, String[] actionIds) Updates the role's permissions at the scope, setting the actions that can be performed on resources of the type. |
void | setResourcePermissions(long companyId, String name, int scope, String primKey, java.util.Map Updates the role's permissions at the scope, setting the actions that can be performed on resources of the type. |