public class SpringCacheBasedAclCache extends java.lang.Object implements AclCache
AclCache
that
delegates to Cache
implementation.
Designed to handle the transient fields in
AclImpl
. Note that this implementation
assumes all AclImpl
instances share
the same PermissionGrantingStrategy
and
AclAuthorizationStrategy
instances.
Constructor and Description |
---|
SpringCacheBasedAclCache(org.springframework.cache.Cache cache,
PermissionGrantingStrategy permissionGrantingStrategy,
AclAuthorizationStrategy aclAuthorizationStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
evictFromCache(ObjectIdentity objectIdentity) |
void |
evictFromCache(java.io.Serializable pk) |
MutableAcl |
getFromCache(ObjectIdentity objectIdentity) |
MutableAcl |
getFromCache(java.io.Serializable pk) |
void |
putInCache(MutableAcl acl) |
public SpringCacheBasedAclCache(org.springframework.cache.Cache cache, PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy)
public void evictFromCache(java.io.Serializable pk)
evictFromCache
in interface AclCache
public void evictFromCache(ObjectIdentity objectIdentity)
evictFromCache
in interface AclCache
public MutableAcl getFromCache(ObjectIdentity objectIdentity)
getFromCache
in interface AclCache
public MutableAcl getFromCache(java.io.Serializable pk)
getFromCache
in interface AclCache
public void putInCache(MutableAcl acl)
putInCache
in interface AclCache
public void clearCache()
clearCache
in interface AclCache