Interface RoleManagement


public interface RoleManagement
Role management.
  • Method Details

    • createAsync

      CompletableFuture<Void> createAsync(Role role)
      Creates a new role.
      Parameters:
      role - role to create.
      Returns:
      future that will be completed when role is created or failed with an exception.
    • dropAsync

      CompletableFuture<Void> dropAsync(String roleName, boolean withRevoke)
      Drops a role by name.
      Parameters:
      roleName - role name.
      withRevoke - if true then all role assignments will be revoked.
      Returns:
      future that will be completed when role is dropped or failed with an exception.
    • findByNameAsync

      CompletableFuture<Role> findByNameAsync(String roleName)
      Finds a role by name.
      Parameters:
      roleName - role name.
      Returns:
      future that will be completed with role or failed with an exception if no such role.
    • findAllAsync

      Finds all roles.
      Returns:
      future that will be completed with collection of roles or empty collection.