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 extendedMutableAclService
with more operators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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.void
deleteAllAcls()
Deprecated.since 6.2 planned for removal without replacementorg.acegisecurity.acls.MutableAcl
getAclOfGlobalPermission()
Read acl for the global permission objectBambooCacheStats
getCacheStats()
boolean
hasAcesForSid(org.acegisecurity.acls.sid.Sid sid)
Check if givenSid
has anyAccessControlEntry
s.void
initialiseCache()
Warm up the cache.void
invalidateCache()
org.acegisecurity.acls.MutableAcl
readMutableAclById(long objectId)
Deprecated.since 6.2 usereadMutableAclById(ObjectIdentity)
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)
-
-
-
Method Detail
-
updateAclAces
void updateAclAces(org.acegisecurity.acls.MutableAcl acl, List<String> newPermissionKeys)
-
deleteAllAcls
@Deprecated void deleteAllAcls()
Deprecated.since 6.2 planned for removal without replacementDeletes all ACLs and permissions from the system... Do this *only* if you know what you're doing!
-
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 org.acegisecurity.acls.MutableAcl readMutableAclById(long objectId)
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
-
-