Class SpringCacheBasedAclCache
- java.lang.Object
-
- org.springframework.security.acls.domain.SpringCacheBasedAclCache
-
- All Implemented Interfaces:
AclCache
public class SpringCacheBasedAclCache extends java.lang.Object implements AclCache
Simple implementation ofAclCache
that delegates toCache
implementation.Designed to handle the transient fields in
AclImpl
. Note that this implementation assumes allAclImpl
instances share the samePermissionGrantingStrategy
andAclAuthorizationStrategy
instances.- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description SpringCacheBasedAclCache(org.springframework.cache.Cache cache, PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
void
evictFromCache(java.io.Serializable pk)
void
evictFromCache(ObjectIdentity objectIdentity)
MutableAcl
getFromCache(java.io.Serializable pk)
MutableAcl
getFromCache(ObjectIdentity objectIdentity)
void
putInCache(MutableAcl acl)
-
-
-
Constructor Detail
-
SpringCacheBasedAclCache
public SpringCacheBasedAclCache(org.springframework.cache.Cache cache, PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy)
-
-
Method Detail
-
evictFromCache
public void evictFromCache(java.io.Serializable pk)
- Specified by:
evictFromCache
in interfaceAclCache
-
evictFromCache
public void evictFromCache(ObjectIdentity objectIdentity)
- Specified by:
evictFromCache
in interfaceAclCache
-
getFromCache
public MutableAcl getFromCache(ObjectIdentity objectIdentity)
- Specified by:
getFromCache
in interfaceAclCache
-
getFromCache
public MutableAcl getFromCache(java.io.Serializable pk)
- Specified by:
getFromCache
in interfaceAclCache
-
putInCache
public void putInCache(MutableAcl acl)
- Specified by:
putInCache
in interfaceAclCache
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceAclCache
-
-