Package ch.tocco.nice2.userbase.impl
Class RuleRoleServiceImpl
java.lang.Object
ch.tocco.nice2.userbase.impl.RuleRoleServiceImpl
- All Implemented Interfaces:
RuleRoleService
-
Constructor Summary
ConstructorsConstructorDescriptionRuleRoleServiceImpl(org.slf4j.Logger logger, BusinessUnitManager businessUnitManager, SecurityManager securityManager, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRoles(Condition restriction) Applies the rules to all Principals that match the given condition.findUserToRole(String... roleNames) FindsUserentities which have a principal which would receive at least one of the given roles when the rules are applied.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.userbase.api.RuleRoleService
applyRoles
-
Constructor Details
-
RuleRoleServiceImpl
public RuleRoleServiceImpl(org.slf4j.Logger logger, BusinessUnitManager businessUnitManager, SecurityManager securityManager, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor)
-
-
Method Details
-
findUserToRole
Description copied from interface:RuleRoleServiceFindsUserentities which have a principal which would receive at least one of the given roles when the rules are applied.- Specified by:
findUserToRolein interfaceRuleRoleService
-
applyRoles
Description copied from interface:RuleRoleServiceApplies the rules to all Principals that match the given condition. This method is optimized for handling large number of principals.- Specified by:
applyRolesin interfaceRuleRoleService
-