Package ch.tocco.nice2.userbase.api
Interface RuleRoleService
- All Known Implementing Classes:
RuleRoleServiceImpl
public interface RuleRoleService
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRoles(Condition restriction) Applies the rules to all Principals that match the given condition.default voidapplyRoles(String username) Applies the rules to the principal with the given username.findUserToRole(String... roleNames) FindsUserentities which have a principal which would receive at least one of the given roles when the rules are applied.
-
Method Details
-
findUserToRole
FindsUserentities which have a principal which would receive at least one of the given roles when the rules are applied. -
applyRoles
Applies the rules to the principal with the given username. -
applyRoles
Applies the rules to all Principals that match the given condition. This method is optimized for handling large number of principals.
-