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 TypeMethodDescriptionvoid
changePasswordForLoggedInUser
(String oldPassword, String newPassword) Changes the password of the logged in user.boolean
Returns true if a user with the specified username exists.Returns the decoratedUserManager
.Returns the default type for users.void
overwritePassword
(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, refresh
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.HandlerBase
create, delete, modify
Methods inherited from interface sonia.scm.LastModifiedAware
getLastModified
Methods inherited from interface sonia.scm.Manager
get, getAll, getAll, getAll, getAll, getAll, getPage, refresh
Methods inherited from interface sonia.scm.user.UserManager
isTypeDefault
-
Constructor Details
-
UserManagerDecorator
-
-
Method Details
-
contains
Description copied from interface:UserManager
Returns true if a user with the specified username exists.- Specified by:
contains
in interfaceUserManager
-
search
- Specified by:
search
in interfaceSearchable<User>
-
getDecorated
Returns the decoratedUserManager
.- Since:
- 1.34
-
getDefaultType
Description copied from interface:UserManager
Returns the default type for users.- Specified by:
getDefaultType
in interfaceUserManager
-
changePasswordForLoggedInUser
Description copied from interface:UserManager
Changes the password of the logged in user.- Specified by:
changePasswordForLoggedInUser
in interfaceUserManager
- Parameters:
oldPassword
- The current encrypted password of the user.newPassword
- The new encrypted password of the user.
-
overwritePassword
Description copied from interface:UserManager
Overwrites the password for the given user id. This needs user write privileges.- Specified by:
overwritePassword
in interfaceUserManager
- Parameters:
userId
- The id of the user to change the password for.newPassword
- The new encrypted password.
-