Class AbstractEntitySecurityDomain<T,U>
java.lang.Object
ch.tocco.nice2.persist.security.impl.provider.GuardCachingSecurityDomain<U>
ch.tocco.nice2.persist.security.impl.provider.AbstractEntitySecurityDomain<T,U>
- All Implemented Interfaces:
SecurityDomain
- Direct Known Subclasses:
EntityPathSecurityDomain
,EntitySecurityDomain
Common base class for entity-based security domains.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PermissionEvaluator
protected final QueryCompiler
protected final SecurityManager
Fields inherited from class ch.tocco.nice2.persist.security.impl.provider.GuardCachingSecurityDomain
context
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractEntitySecurityDomain
(SecurityManager securityManager, QueryCompiler queryCompiler, Context context, PermissionEvaluator permissionEvaluator) -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
evaluateCondition
(List<?> objects, SecurityContext ctx, Rule rule, Permission permission) protected abstract List
<EntityReference> getEntityReferences
(List<T> secured) Methods inherited from class ch.tocco.nice2.persist.security.impl.provider.GuardCachingSecurityDomain
buildCache, clearGuardCache, createCacheKey, getOrCreateFilteredPolicy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.security.spi.SecurityDomain
aggregateSupportedObjects, getSelectorFactory
-
Field Details
-
securityManager
-
queryCompiler
-
permissionEvaluator
-
-
Constructor Details
-
AbstractEntitySecurityDomain
protected AbstractEntitySecurityDomain(SecurityManager securityManager, QueryCompiler queryCompiler, Context context, PermissionEvaluator permissionEvaluator)
-
-
Method Details
-
getEntityReferences
-
evaluateCondition
public boolean[] evaluateCondition(List<?> objects, SecurityContext ctx, Rule rule, Permission permission) throws EvaluationException - Throws:
EvaluationException
-