Class EhCacheBasedAclCache
- java.lang.Object
-
- org.springframework.security.acls.domain.EhCacheBasedAclCache
-
- All Implemented Interfaces:
AclCache
public class EhCacheBasedAclCache extends java.lang.Object implements AclCache
Simple implementation ofAclCachethat delegates to EH-CACHE.Designed to handle the transient fields in
AclImpl. Note that this implementation assumes allAclImplinstances share the samePermissionGrantingStrategyandAclAuthorizationStrategyinstances.
-
-
Constructor Summary
Constructors Constructor Description EhCacheBasedAclCache(net.sf.ehcache.Ehcache 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
-
EhCacheBasedAclCache
public EhCacheBasedAclCache(net.sf.ehcache.Ehcache 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
-
-