Package ch.tocco.nice2.userbase.api
Interface RuleRoleService
- All Known Implementing Classes:
RuleRoleServiceImpl
public interface RuleRoleService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyRoles
(Condition restriction) Applies the rules to all Principals that match the given condition.default void
applyRoles
(String username) Applies the rules to the principal with the given username.findUserToRole
(String... roleNames) FindsUser
entities which have a principal which would receive at least one of the given roles when the rules are applied.
-
Method Details
-
findUserToRole
FindsUser
entities 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.
-