Class EntityConditionCacheConfiguration
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.EntityConditionCacheConfiguration
- All Implemented Interfaces:
EntityCacheConfiguration<Tuple2<EntityReference,
Node>, Boolean>
@Component
public class EntityConditionCacheConfiguration
extends Object
implements EntityCacheConfiguration<Tuple2<EntityReference,Node>,Boolean>
Cache configuration for the conditions cache used by the
EntitySecurityDomain
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindKeysToExpire
(com.google.common.cache.Cache<Tuple2<EntityReference, Node>, Boolean> cache, Entity invalidatedEntity) invalidate a cache entrygetName()
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
EntityConditionCacheConfiguration
public EntityConditionCacheConfiguration()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceEntityCacheConfiguration<Tuple2<EntityReference,
Node>, Boolean> - Returns:
- unique name of the cache type
-
findKeysToExpire
public Collection<Tuple2<EntityReference,Node>> findKeysToExpire(com.google.common.cache.Cache<Tuple2<EntityReference, Node>, Boolean> cache, Entity invalidatedEntity) Description copied from interface:EntityCacheConfiguration
invalidate a cache entry- Specified by:
findKeysToExpire
in interfaceEntityCacheConfiguration<Tuple2<EntityReference,
Node>, Boolean> - Returns:
- all keys that should be removed from the cache (because they belong to the given invalidated entity)
-