Package org.graylog2.users
Class UserManagementServiceImpl
java.lang.Object
org.graylog2.database.PersistedServiceImpl
org.graylog2.users.UserServiceImpl
org.graylog2.users.UserManagementServiceImpl
- All Implemented Interfaces:
PersistedService,UserManagementService,UserService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graylog2.users.UserServiceImpl
UserServiceImpl.DuplicateUserException -
Field Summary
Fields inherited from class org.graylog2.database.PersistedServiceImpl
mongoConnection -
Constructor Summary
ConstructorsConstructorDescriptionUserManagementServiceImpl(MongoConnection mongoConnection, Configuration configuration, RoleService roleService, AccessTokenService accessTokenService, UserImpl.Factory userFactory, InMemoryRolePermissionResolver inMemoryRolePermissionResolver, com.google.common.eventbus.EventBus serverEventBus, GRNRegistry grnRegistry, PermissionAndRoleResolver permissionAndRoleResolver) -
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 class org.graylog2.users.UserServiceImpl
count, create, delete, deleteById, dissociateAllUsersFromRole, getAdminUser, getGRNPermissionsForUser, getPermissionsForUser, getRoleNames, getRootUser, getUserPermissionsFromRoles, getWildcardPermissionsForUser, initialUserFields, load, loadAll, loadAllByName, loadAllForAuthServiceBackend, loadAllForRole, loadByAuthServiceUidOrUsername, loadById, loadByIds, saveMethods inherited from class org.graylog2.database.PersistedServiceImpl
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, fieldTransformations, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, saveWithoutValidation, totalCount, totalCount, validate, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
UserManagementServiceImpl
@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)
-
-
Method Details
-
create
Description copied from interface:UserManagementServiceAdditional method allows explicit create operation to be carried out (as opposed to calling .save)- Specified by:
createin interfaceUserManagementService- Throws:
ValidationException
-
setUserStatus
- Specified by:
setUserStatusin interfaceUserManagementService- Throws:
ValidationException
-
isUserPassword
- Specified by:
isUserPasswordin interfaceUserManagementService
-
changePassword
public void changePassword(User user, String oldPassword, String newPassword) throws ValidationException - Specified by:
changePasswordin interfaceUserManagementService- Throws:
ValidationException
-
changePassword
- Specified by:
changePasswordin interfaceUserManagementService- Throws:
ValidationException
-