public class UserManagementServiceImpl extends UserServiceImpl implements UserManagementService
mongoConnection| Constructor and Description |
|---|
UserManagementServiceImpl(MongoConnection mongoConnection,
Configuration configuration,
RoleService roleService,
AccessTokenService accessTokenService,
UserImpl.Factory userFactory,
InMemoryRolePermissionResolver inMemoryRolePermissionResolver,
com.google.common.eventbus.EventBus serverEventBus,
GRNRegistry grnRegistry,
PermissionAndRoleResolver permissionAndRoleResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(User user,
String newPassword) |
void |
changePassword(User user,
String oldPassword,
String newPassword) |
String |
create(User user)
Additional method allows explicit create operation to be carried out
(as opposed to calling .save)
|
boolean |
isUserPassword(User user,
String password) |
void |
setUserStatus(User user,
User.AccountStatus status) |
String |
update(User user)
Additional method allows explicit update operations to be carried out
(as opposed to calling .save)
|
count, create, delete, deleteById, dissociateAllUsersFromRole, getAdminUser, getGRNPermissionsForUser, getPermissionsForUser, getRoleNames, getRootUser, getUserPermissionsFromRoles, getWildcardPermissionsForUser, initialUserFields, load, loadAll, loadAllForAuthServiceBackend, loadAllForRole, loadByAuthServiceUidOrUsername, loadById, loadByIds, savecollection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, create, delete, deleteById, dissociateAllUsersFromRole, getAdminUser, getGRNPermissionsForUser, getPermissionsForUser, getRoleNames, getRootUser, getUserPermissionsFromRoles, getWildcardPermissionsForUser, load, loadAll, loadAllForAuthServiceBackend, loadAllForRole, loadByAuthServiceUidOrUsername, loadById, loadByIdsdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public UserManagementServiceImpl(MongoConnection mongoConnection, Configuration configuration, RoleService roleService, AccessTokenService accessTokenService, UserImpl.Factory userFactory, InMemoryRolePermissionResolver inMemoryRolePermissionResolver, com.google.common.eventbus.EventBus serverEventBus, GRNRegistry grnRegistry, PermissionAndRoleResolver permissionAndRoleResolver)
public String create(User user) throws ValidationException
UserManagementServicecreate in interface UserManagementServiceValidationExceptionpublic String update(User user) throws ValidationException
UserManagementServiceupdate in interface UserManagementServiceValidationExceptionpublic void setUserStatus(User user, User.AccountStatus status) throws ValidationException
setUserStatus in interface UserManagementServiceValidationExceptionpublic boolean isUserPassword(User user, String password)
isUserPassword in interface UserManagementServicepublic void changePassword(User user, String oldPassword, String newPassword) throws ValidationException
changePassword in interface UserManagementServiceValidationExceptionpublic void changePassword(User user, String newPassword) throws ValidationException
changePassword in interface UserManagementServiceValidationExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.