Package ch.tocco.nice2.userbase.impl
Class RuleRoleServiceImpl
java.lang.Object
ch.tocco.nice2.userbase.impl.RuleRoleServiceImpl
- All Implemented Interfaces:
RuleRoleService
-
Constructor Summary
ConstructorDescriptionRuleRoleServiceImpl
(org.slf4j.Logger logger, BusinessUnitManager businessUnitManager, SecurityManager securityManager, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyRoles
(Condition restriction) Applies the rules to all Principals that match the given condition.findUserToRole
(String... roleNames) FindsUser
entities 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, wait
Methods 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:RuleRoleService
FindsUser
entities which have a principal which would receive at least one of the given roles when the rules are applied.- Specified by:
findUserToRole
in interfaceRuleRoleService
-
applyRoles
Description copied from interface:RuleRoleService
Applies the rules to all Principals that match the given condition. This method is optimized for handling large number of principals.- Specified by:
applyRoles
in interfaceRuleRoleService
-