Class SpringCacheBasedAclCache
java.lang.Object
org.springframework.security.acls.domain.SpringCacheBasedAclCache
- All Implemented Interfaces:
AclCache
Simple implementation of
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.
- Since:
- 3.2
-
Constructor Summary
ConstructorDescriptionSpringCacheBasedAclCache
(org.springframework.cache.Cache cache, PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
evictFromCache
(ObjectIdentity objectIdentity) getFromCache
(ObjectIdentity objectIdentity) void
putInCache
(MutableAcl acl)
-
Constructor Details
-
SpringCacheBasedAclCache
public SpringCacheBasedAclCache(org.springframework.cache.Cache cache, PermissionGrantingStrategy permissionGrantingStrategy, AclAuthorizationStrategy aclAuthorizationStrategy)
-
-
Method Details
-
evictFromCache
- Specified by:
evictFromCache
in interfaceAclCache
-
evictFromCache
- Specified by:
evictFromCache
in interfaceAclCache
-
getFromCache
- Specified by:
getFromCache
in interfaceAclCache
-
getFromCache
- Specified by:
getFromCache
in interfaceAclCache
-
putInCache
- Specified by:
putInCache
in interfaceAclCache
-
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceAclCache
-