Class HibernatePermissionEvaluator
java.lang.Object
ch.tocco.nice2.persist.security.impl.hibernate.HibernatePermissionEvaluator
- All Implemented Interfaces:
PermissionEvaluator
Uses the
PersistenceService
to evaluate the conditions.
This enables selecting only the primary key instead of the entire entity
(which is the default of the hibernate implementation of QueryCompiler
).-
Constructor Summary
ConstructorDescriptionHibernatePermissionEvaluator
(SecurityManager securityManager, PersistenceService persistService) -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
evaluatePermission
(List<EntityReference> entities, Node preparedCondition) Evaluate the given condition for the given entity.
-
Constructor Details
-
HibernatePermissionEvaluator
public HibernatePermissionEvaluator(SecurityManager securityManager, PersistenceService persistService)
-
-
Method Details
-
evaluatePermission
Description copied from interface:PermissionEvaluator
Evaluate the given condition for the given entity.- Specified by:
evaluatePermission
in interfacePermissionEvaluator
-