Interface HibernateMutableAclService
- All Superinterfaces:
org.acegisecurity.acls.AclService
,org.acegisecurity.acls.MutableAclService
- All Known Implementing Classes:
HibernateMutableAclServiceImpl
public interface HibernateMutableAclService
extends org.acegisecurity.acls.MutableAclService
An extended
MutableAclService
with more operators.-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeAlcOwnerForSid
(org.acegisecurity.acls.sid.Sid oldOwner, org.acegisecurity.acls.sid.Sid newOwner) Change the ownership of all Acls owned byoldOwner
tonewOwner
.void
deleteAcesForSid
(org.acegisecurity.acls.sid.Sid sid) Deleted all access control entries associated with a given security identity.org.acegisecurity.acls.MutableAcl
Read acl for the global permission objectboolean
hasAcesForSid
(org.acegisecurity.acls.sid.Sid sid) Check if givenSid
has anyAccessControlEntry
s.void
Warm up the cache.void
org.acegisecurity.acls.MutableAcl
readMutableAclById
(long objectId) Deprecated.org.acegisecurity.acls.MutableAcl
readMutableAclById
(org.acegisecurity.acls.objectidentity.ObjectIdentity objectId) Same asAclService.readAclById(ObjectIdentity)
except it returns only a single MutableAcl.void
updateAclAces
(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys) Methods inherited from interface org.acegisecurity.acls.AclService
findChildren, readAclById, readAclById, readAclsById, readAclsById
Methods inherited from interface org.acegisecurity.acls.MutableAclService
createAcl, deleteAcl, updateAcl
-
Method Details
-
updateAclAces
-
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 givenSid
has anyAccessControlEntry
s.- 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 byoldOwner
tonewOwner
.- Parameters:
oldOwner
-newOwner
-
-
getCacheStats
BambooCacheStats getCacheStats() -
invalidateCache
void invalidateCache() -
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:
-
initialiseCache
void initialiseCache()Warm up the cache.- Since:
- 9.0
-
readMutableAclById(ObjectIdentity)