Interface MutableRolePermissionMapper

All Superinterfaces:
RolePermissionMapper
All Known Implementing Classes:
ClusterPermissionMapper

public interface MutableRolePermissionMapper extends RolePermissionMapper
A RolePermissionMapper with the ability to add/remove roles at runtime
Since:
14.0
  • Method Details

    • addRole

      CompletionStage<Void> addRole(Role role)
      Adds a new role
      Parameters:
      role - the role
    • removeRole

      CompletionStage<Boolean> removeRole(String role)
      Removes a role
      Parameters:
      role - the name of the role to be removed
      Returns:
      true if a role with the supplied name was found and removed