Interface UserManagement


public interface UserManagement
User management API.
  • Method Details

    • createAsync

      CompletableFuture<Void> createAsync(User user)
      Creates user.
      Parameters:
      user - user to create.
      Returns:
      future that will be completed when user is created or failed with an exception.
    • dropByUsernameAsync

      CompletableFuture<Void> dropByUsernameAsync(String username)
      Drops user by username.
      Parameters:
      username - username.
      Returns:
      future that will be completed when user is dropped or failed with an exception.
    • findByUsernameAsync

      CompletableFuture<User> findByUsernameAsync(String username)
      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

      Finds all users.
      Returns:
      future that will be completed with collection of users or empty collection.
    • updateAsync

      CompletableFuture<Void> updateAsync(String username, User newUser)
      Updates user.
      Parameters:
      username - username.
      newUser - new user.
      Returns:
      future that will be completed when user is updated or failed with an exception.