Package org.graylog2.shared.users
Interface UserManagementService
- All Superinterfaces:
PersistedService,UserService
- All Known Implementing Classes:
UserManagementServiceImpl
User management extension for the UserService. Initially intended to be used in the UserResource for user
management-specific operations that require specific UserService behavior to be augmented/overridden. Also allows
new user management-specific operations to be added. This allows all other direct usages of UserService to
remain unchanged.
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(User user, String newPassword) voidchangePassword(User user, String oldPassword, String newPassword) Additional method allows explicit create operation to be carried out (as opposed to calling .save)booleanisUserPassword(User user, String password) voidsetUserStatus(User user, User.AccountStatus status) update(User user, ChangeUserRequest cr) Additional method allows explicit update operations to be carried out (as opposed to calling .save)Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validateMethods inherited from interface org.graylog2.shared.users.UserService
count, create, delete, deleteById, dissociateAllUsersFromRole, getAdminUser, getGRNPermissionsForUser, getPermissionsForUser, getRoleNames, getRootUser, getUserPermissionsFromRoles, getWildcardPermissionsForUser, load, loadAll, loadAllByName, loadAllForAuthServiceBackend, loadAllForRole, loadByAuthServiceUidOrUsername, loadById, loadByIds
-
Method Details
-
create
Additional method allows explicit create operation to be carried out (as opposed to calling .save)- Throws:
ValidationException
-
setUserStatus
- Throws:
ValidationException
-
isUserPassword
-
changePassword
- Throws:
ValidationException
-
changePassword
- Throws:
ValidationException
-