(Quick Reference)
deletePermission
Purpose
Removes a granted permission.
Examples
aclUtilService.deletePermission Report, 42, 'user123', BasePermission.WRITEaclUtilService.deletePermission reportInstance, 'user123', BasePermission.WRITE
Description
void deletePermission(domainObject, recipient, Permission permission)void deletePermission(Class<?> domainClass, long id, recipient, Permission permission)
Parameters
domainClass
- the domain class, used when specifying the class and id
id
- the instance id, used when specifying the class and id
domainObject
- the domain class instance, used when the instance is available
recipient
- the grantee; can be a String (username or role name), or a Sid
, or an Authentication
permission
- the permission to remove