Package sonia.scm.user
Class UserManagerDecorator
- All Implemented Interfaces:
Closeable,AutoCloseable,HandlerBase<User>,Initable,LastModifiedAware,Manager<User>,Searchable<User>,UserManager
Decorator for
UserManager.- Since:
- 1.23
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePasswordForLoggedInUser(String oldPassword, String newPassword) Changes the password of the logged in user.booleanReturns true if a user with the specified username exists.Returns the decoratedUserManager.Returns the default type for users.voidoverwritePassword(String userId, String newPassword) Overwrites the password for the given user id.search(SearchRequest searchRequest) Methods inherited from class sonia.scm.ManagerDecorator
close, create, delete, get, getAll, getAll, getAll, getAll, getLastModified, init, modify, refreshMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sonia.scm.HandlerBase
create, delete, modifyMethods inherited from interface sonia.scm.LastModifiedAware
getLastModifiedMethods inherited from interface sonia.scm.Manager
get, getAll, getAll, getAll, getAll, getAll, getPage, refreshMethods inherited from interface sonia.scm.user.UserManager
isTypeDefault
-
Constructor Details
-
UserManagerDecorator
-
-
Method Details
-
contains
Description copied from interface:UserManagerReturns true if a user with the specified username exists.- Specified by:
containsin interfaceUserManager
-
search
- Specified by:
searchin interfaceSearchable<User>
-
getDecorated
Returns the decoratedUserManager.- Since:
- 1.34
-
getDefaultType
Description copied from interface:UserManagerReturns the default type for users.- Specified by:
getDefaultTypein interfaceUserManager
-
changePasswordForLoggedInUser
Description copied from interface:UserManagerChanges the password of the logged in user.- Specified by:
changePasswordForLoggedInUserin interfaceUserManager- Parameters:
oldPassword- The current encrypted password of the user.newPassword- The new encrypted password of the user.
-
overwritePassword
Description copied from interface:UserManagerOverwrites the password for the given user id. This needs user write privileges.- Specified by:
overwritePasswordin interfaceUserManager- Parameters:
userId- The id of the user to change the password for.newPassword- The new encrypted password.
-