Interface RolePermissionMapper

All Known Subinterfaces:
MutableRolePermissionMapper
All Known Implementing Classes:
ClusterPermissionMapper

public interface RolePermissionMapper
Maps roles to permissions
Since:
14.0
  • Method Details

    • setContext

      default void setContext(AuthorizationMapperContext context)
      Sets the context for this RolePermissionMapper
      Parameters:
      context -
    • getRole

      Role getRole(String name)
      Parameters:
      name - the name of the role
      Returns:
      the Role
    • getAllRoles

      Map<String,Role> getAllRoles()
      Returns:
      all roles handled by this RolePermissionMapper
    • hasRole

      boolean hasRole(String name)
      Parameters:
      name -
      Returns:
      whether this permission mapper contains the named role