Interface AclServiceDelegate
- All Known Implementing Classes:
HibernateMutableAclServiceImpl
@Internal
public interface AclServiceDelegate
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeAlcOwnerForSid(org.acegisecurity.acls.sid.Sid oldOwner, org.acegisecurity.acls.sid.Sid newOwner) Change the ownership of all Acls owned byoldOwnertonewOwner.org.acegisecurity.acls.MutableAclcreateAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) voiddeleteAcesForSid(org.acegisecurity.acls.sid.Sid sid) Deleted all access control entries associated with a given security identity.voiddeleteAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity, boolean deleteChildren) org.acegisecurity.acls.objectidentity.ObjectIdentity[]findChildren(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity) org.acegisecurity.acls.MutableAclRead acl for the global permission objectbooleanhasAcesForSid(org.acegisecurity.acls.sid.Sid sid) Check if givenSidhas anyAccessControlEntrys.org.acegisecurity.acls.MutableAclreadMutableAclById(long objectId) Deprecated.org.acegisecurity.acls.MutableAclreadMutableAclById(org.acegisecurity.acls.objectidentity.ObjectIdentity objectId) Same asAclService.readAclById(ObjectIdentity)except it returns only a single MutableAcl.org.acegisecurity.acls.MutableAclupdateAcl(org.acegisecurity.acls.MutableAcl acl) voidupdateAclAces(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys)
-
Method Details
-
readMutableAclById
org.acegisecurity.acls.MutableAcl readMutableAclById(org.acegisecurity.acls.objectidentity.ObjectIdentity objectId) Same asAclService.readAclById(ObjectIdentity)except it returns only a single MutableAcl.- Parameters:
objectId-- Returns:
- Throws:
org.acegisecurity.acls.NotFoundException- if no acl has been found
-
deleteAcesForSid
void deleteAcesForSid(org.acegisecurity.acls.sid.Sid sid) Deleted all access control entries associated with a given security identity.- Parameters:
sid-
-
hasAcesForSid
boolean hasAcesForSid(org.acegisecurity.acls.sid.Sid sid) Check if givenSidhas anyAccessControlEntrys.- Parameters:
sid-- Returns:
- true if sid has aces.
-
changeAlcOwnerForSid
void changeAlcOwnerForSid(org.acegisecurity.acls.sid.Sid oldOwner, org.acegisecurity.acls.sid.Sid newOwner) Change the ownership of all Acls owned byoldOwnertonewOwner.- Parameters:
oldOwner-newOwner-
-
readMutableAclById
Deprecated.since 6.2 usereadMutableAclById(ObjectIdentity)Read acl for given domain object id- Parameters:
objectId-- Returns:
- Throws:
org.acegisecurity.acls.NotFoundException- if no acl has been found
-
getAclOfGlobalPermission
org.acegisecurity.acls.MutableAcl getAclOfGlobalPermission()Read acl for the global permission object- Returns:
-
findChildren
org.acegisecurity.acls.objectidentity.ObjectIdentity[] findChildren(org.acegisecurity.acls.objectidentity.ObjectIdentity parentIdentity) -
createAcl
org.acegisecurity.acls.MutableAcl createAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity) throws org.acegisecurity.acls.AlreadyExistsException - Throws:
org.acegisecurity.acls.AlreadyExistsException
-
deleteAcl
void deleteAcl(org.acegisecurity.acls.objectidentity.ObjectIdentity objectIdentity, boolean deleteChildren) throws org.acegisecurity.acls.ChildrenExistException - Throws:
org.acegisecurity.acls.ChildrenExistException
-
updateAcl
org.acegisecurity.acls.MutableAcl updateAcl(org.acegisecurity.acls.MutableAcl acl) throws org.acegisecurity.acls.NotFoundException - Throws:
org.acegisecurity.acls.NotFoundException
-
updateAclAces
-
readMutableAclById(ObjectIdentity)