org.springframework.security.acls.domain
Class EhCacheBasedAclCache
java.lang.Object
org.springframework.security.acls.domain.EhCacheBasedAclCache
- All Implemented Interfaces:
- AclCache
public class EhCacheBasedAclCache
- extends Object
- implements AclCache
Simple implementation of AclCache
that delegates to EH-CACHE.
Designed to handle the transient fields in AclImpl
. Note that this implementation assumes all
AclImpl
instances share the same AuditLogger
and AclAuthorizationStrategy
instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhCacheBasedAclCache
public EhCacheBasedAclCache(net.sf.ehcache.Ehcache cache)
evictFromCache
public void evictFromCache(Serializable pk)
- Specified by:
evictFromCache
in interface AclCache
evictFromCache
public void evictFromCache(ObjectIdentity objectIdentity)
- Specified by:
evictFromCache
in interface AclCache
getFromCache
public MutableAcl getFromCache(ObjectIdentity objectIdentity)
- Specified by:
getFromCache
in interface AclCache
getFromCache
public MutableAcl getFromCache(Serializable pk)
- Specified by:
getFromCache
in interface AclCache
putInCache
public void putInCache(MutableAcl acl)
- Specified by:
putInCache
in interface AclCache
clearCache
public void clearCache()
- Specified by:
clearCache
in interface AclCache