Interface RuleRoleService

All Known Implementing Classes:
RuleRoleServiceImpl

public interface RuleRoleService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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)
    Finds User entities which have a principal which would receive at least one of the given roles when the rules are applied.
  • Method Details

    • findUserToRole

      Set<PrimaryKey> findUserToRole(String... roleNames)
      Finds User entities which have a principal which would receive at least one of the given roles when the rules are applied.
    • applyRoles

      default void applyRoles(String username)
      Applies the rules to the principal with the given username.
    • applyRoles

      void applyRoles(Condition restriction)
      Applies the rules to all Principals that match the given condition. This method is optimized for handling large number of principals.