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 ofAclCache
that delegates to EH-CACHE.Designed to handle the transient fields in
AclImpl
. Note that this implementation assumes allAclImpl
instances share the samePermissionGrantingStrategy
andAclAuthorizationStrategy
instances.
-
-
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 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
-
EhCacheBasedAclCache
public EhCacheBasedAclCache(net.sf.ehcache.Ehcache 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
-
-