Package org.gridgain.internal.rbac.roles
Interface RoleManagement
public interface RoleManagement
Role management.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAsync(Role role) Creates a new role.Drops a role by name.Finds all roles.findByNameAsync(String roleName) Finds a role by name.
-
Method Details
-
createAsync
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
Drops a role by name.- Parameters:
roleName- role name.withRevoke- iftruethen all role assignments will be revoked.- Returns:
- future that will be completed when role is dropped or failed with an exception.
-
findByNameAsync
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
CompletableFuture<Collection<Role>> findAllAsync()Finds all roles.- Returns:
- future that will be completed with collection of roles or empty collection.
-