public class EhCacheBasedAclCache extends Object implements AclCache
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 PermissionGrantingStrategy and AclAuthorizationStrategy
instances.
| Constructor and Description |
|---|
EhCacheBasedAclCache(net.sf.ehcache.Ehcache cache)
Deprecated.
use the second constructor which injects the strategy objects. See SEC-1498.
|
EhCacheBasedAclCache(net.sf.ehcache.Ehcache cache,
PermissionGrantingStrategy permissionGrantingStrategy,
AclAuthorizationStrategy aclAuthorizationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
void |
evictFromCache(ObjectIdentity objectIdentity) |
void |
evictFromCache(Serializable pk) |
MutableAcl |
getFromCache(ObjectIdentity objectIdentity) |
MutableAcl |
getFromCache(Serializable pk) |
void |
putInCache(MutableAcl acl) |
@Deprecated public EhCacheBasedAclCache(net.sf.ehcache.Ehcache cache)
public EhCacheBasedAclCache(net.sf.ehcache.Ehcache cache,
PermissionGrantingStrategy permissionGrantingStrategy,
AclAuthorizationStrategy aclAuthorizationStrategy)
public void evictFromCache(Serializable pk)
evictFromCache in interface AclCachepublic void evictFromCache(ObjectIdentity objectIdentity)
evictFromCache in interface AclCachepublic MutableAcl getFromCache(ObjectIdentity objectIdentity)
getFromCache in interface AclCachepublic MutableAcl getFromCache(Serializable pk)
getFromCache in interface AclCachepublic void putInCache(MutableAcl acl)
putInCache in interface AclCachepublic void clearCache()
clearCache in interface AclCache