Class UserManagerDecorator

java.lang.Object
sonia.scm.ManagerDecorator<User>
sonia.scm.user.UserManagerDecorator
All Implemented Interfaces:
Closeable, AutoCloseable, HandlerBase<User>, Initable, LastModifiedAware, Manager<User>, Searchable<User>, UserManager

public class UserManagerDecorator extends ManagerDecorator<User> implements UserManager
Decorator for UserManager.
Since:
1.23
  • Constructor Details

    • UserManagerDecorator

      public UserManagerDecorator(UserManager decorated)
  • Method Details

    • contains

      public boolean contains(String username)
      Description copied from interface: UserManager
      Returns true if a user with the specified username exists.
      Specified by:
      contains in interface UserManager
    • search

      public Collection<User> search(SearchRequest searchRequest)
      Specified by:
      search in interface Searchable<User>
    • getDecorated

      public UserManager getDecorated()
      Returns the decorated UserManager.
      Since:
      1.34
    • getDefaultType

      public String getDefaultType()
      Description copied from interface: UserManager
      Returns the default type for users.
      Specified by:
      getDefaultType in interface UserManager
    • changePasswordForLoggedInUser

      public void changePasswordForLoggedInUser(String oldPassword, String newPassword)
      Description copied from interface: UserManager
      Changes the password of the logged in user.
      Specified by:
      changePasswordForLoggedInUser in interface UserManager
      Parameters:
      oldPassword - The current encrypted password of the user.
      newPassword - The new encrypted password of the user.
    • overwritePassword

      public void overwritePassword(String userId, String newPassword)
      Description copied from interface: UserManager
      Overwrites the password for the given user id. This needs user write privileges.
      Specified by:
      overwritePassword in interface UserManager
      Parameters:
      userId - The id of the user to change the password for.
      newPassword - The new encrypted password.