Package org.gridgain.internal.rbac.users
Interface UserManagement
public interface UserManagement
User management API.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAsync(User user) Creates user.dropByUsernameAsync(String username) Drops user by username.Finds all users.findByUsernameAsync(String username) Finds user by username.updateAsync(String username, User newUser) Updates user.
-
Method Details
-
createAsync
Creates user.- Parameters:
user- user to create.- Returns:
- future that will be completed when user is created or failed with an exception.
-
dropByUsernameAsync
Drops user by username.- Parameters:
username- username.- Returns:
- future that will be completed when user is dropped or failed with an exception.
-
findByUsernameAsync
Finds user by username.- Parameters:
username- username.- Returns:
- future that will be completed with user or failed with an exception if no such user.
-
findAllAsync
CompletableFuture<Collection<User>> findAllAsync()Finds all users.- Returns:
- future that will be completed with collection of users or empty collection.
-
updateAsync
Updates user.- Parameters:
username- username.newUser- new user.- Returns:
- future that will be completed when user is updated or failed with an exception.
-