Interface UserManager

All Superinterfaces:
AutoCloseable, Closeable, HandlerBase<User>, Initable, LastModifiedAware, Manager<User>, Searchable<User>
All Known Implementing Classes:
AbstractUserManager, UserManagerDecorator

public interface UserManager extends Manager<User>, Searchable<User>
The central class for managing User objects. This class is a singleton and is available via injection.
  • Method Details

    • contains

      boolean contains(String username)
      Returns true if a user with the specified username exists.
    • getDefaultType

      String getDefaultType()
      Returns the default type for users.
      Since:
      1.14
    • isTypeDefault

      default boolean isTypeDefault(User user)
    • changePasswordForLoggedInUser

      void changePasswordForLoggedInUser(String oldPassword, String newPassword)
      Changes the password of the logged in user.
      Parameters:
      oldPassword - The current encrypted password of the user.
      newPassword - The new encrypted password of the user.
    • overwritePassword

      void overwritePassword(String userId, String newPassword)
      Overwrites the password for the given user id. This needs user write privileges.
      Parameters:
      userId - The id of the user to change the password for.
      newPassword - The new encrypted password.