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 ofAclCachethat delegates toCacheimplementation.Designed to handle the transient fields in
AclImpl. Note that this implementation assumes allAclImplinstances share the samePermissionGrantingStrategyandAclAuthorizationStrategyinstances.- 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 voidclearCache()voidevictFromCache(java.io.Serializable pk)voidevictFromCache(ObjectIdentity objectIdentity)MutableAclgetFromCache(java.io.Serializable pk)MutableAclgetFromCache(ObjectIdentity objectIdentity)voidputInCache(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:
evictFromCachein interfaceAclCache
-
evictFromCache
public void evictFromCache(ObjectIdentity objectIdentity)
- Specified by:
evictFromCachein interfaceAclCache
-
getFromCache
public MutableAcl getFromCache(ObjectIdentity objectIdentity)
- Specified by:
getFromCachein interfaceAclCache
-
getFromCache
public MutableAcl getFromCache(java.io.Serializable pk)
- Specified by:
getFromCachein interfaceAclCache
-
putInCache
public void putInCache(MutableAcl acl)
- Specified by:
putInCachein interfaceAclCache
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceAclCache
-
-