public interface UserManagementService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.util.UUID,java.lang.String> |
changePasswordsAtLogon(java.util.List<java.util.UUID> userIds,
boolean generatePassword)
Make specified users to change passwords at next logon.
|
java.lang.Integer |
changePasswordsAtLogonAndSendEmails(java.util.List<java.util.UUID> userIds)
Update passwords for specified users, send them emails with new generated passwords and make them change
passwords at next logon.
|
void |
changeUserPassword(java.util.UUID userId,
java.lang.String newPasswordHash)
Change password for user
|
boolean |
checkPassword(java.util.UUID userId,
java.lang.String passwordHash) |
Group |
copyAccessGroup(java.util.UUID accessGroupId)
Copy access group with all its properties and subgroups.
|
Role |
copyRole(java.util.UUID roleId)
Copy user role with all its permissions.
|
java.lang.String |
generateRememberMeToken(java.util.UUID userId)
Generate and store to DB
RememberMeToken |
java.util.List<java.lang.String> |
getSessionAttributeNames(java.util.UUID groupId)
Get names of session attributes defined for the given group and all its parent groups.
|
boolean |
isUsersRemovingAllowed(java.util.Collection<java.lang.String> userLogins)
Checks whether removing of users with the given logins is allowed
|
java.lang.String |
loadOwnLocale()
Load current user's language.
|
UserTimeZone |
loadOwnTimeZone()
Load current user's time zone settings.
|
java.lang.Integer |
moveUsersToGroup(java.util.List<java.util.UUID> userIds,
java.util.UUID targetAccessGroupId)
Move specified users to a new access group.
|
void |
resetRememberMeTokens()
Remove remember me tokens for all users.
|
void |
resetRememberMeTokens(java.util.List<java.util.UUID> userIds)
Remove remember me tokens for users.
|
void |
saveOwnLocale(java.lang.String locale)
Save current user's language settings.
|
void |
saveOwnTimeZone(UserTimeZone timeZone)
Save current user's time zone settings.
|
static final java.lang.String NAME
Group copyAccessGroup(java.util.UUID accessGroupId)
accessGroupId
- Source access group IdRole copyRole(java.util.UUID roleId)
roleId
- Source access role Idjava.lang.Integer moveUsersToGroup(java.util.List<java.util.UUID> userIds, @Nullable java.util.UUID targetAccessGroupId)
userIds
- Ids for moved userstargetAccessGroupId
- Id of target access group, may be nulljava.lang.Integer changePasswordsAtLogonAndSendEmails(java.util.List<java.util.UUID> userIds)
userIds
- User idsjava.util.Map<java.util.UUID,java.lang.String> changePasswordsAtLogon(java.util.List<java.util.UUID> userIds, boolean generatePassword)
userIds
- User idsgeneratePassword
- Generate new passwordsboolean checkPassword(java.util.UUID userId, java.lang.String passwordHash)
userId
- User idpasswordHash
- Plain hash of new passwordvoid resetRememberMeTokens(java.util.List<java.util.UUID> userIds)
userIds
- User idsvoid resetRememberMeTokens()
java.lang.String generateRememberMeToken(java.util.UUID userId)
RememberMeToken
java.util.List<java.lang.String> getSessionAttributeNames(java.util.UUID groupId)
groupId
- Group identifierUserTimeZone loadOwnTimeZone()
void saveOwnTimeZone(UserTimeZone timeZone)
java.lang.String loadOwnLocale()
void saveOwnLocale(java.lang.String locale)
void changeUserPassword(java.util.UUID userId, java.lang.String newPasswordHash)
userId
- user idnewPasswordHash
- password hashboolean isUsersRemovingAllowed(java.util.Collection<java.lang.String> userLogins)
userLogins
- user logins