| Modifier and Type | Method and Description |
|---|---|
PasswordRecovery |
createPasswordRecovery(PasswordRecovery passwordRecovery)
Creates a PasswordRecovery entity in the repository.
|
User |
createUser(User user)
Creates a user account in the repository.
|
User |
createUser(User user,
ServiceListener[] listeners)
Creates a user account in the repository as per
createUser(User). |
void |
deletePasswordRecovery(PasswordRecovery passwordRecovery)
Deletes the specified PasswordRecovery object from the repository.
|
Set<User> |
findUsersByPreference(String key,
String value)
Returns a set of users that contain a user preference that
matches a specific key and value.
|
String |
generatePassword()
Generates a random password in a format suitable for
presentation as an authentication credential.
|
PasswordRecovery |
getPasswordRecovery(String key)
Returns the PasswordRecovery entity associated with the given password recovery key.
|
User |
getUser(String username)
Returns the user account identified by the given username.
|
User |
getUserByActivationId(String activationId)
Returns the user account associated with the given activation id.
|
User |
getUserByEmail(String email)
Returns the user account identified by the given email address.
|
Set<User> |
getUsers()
Returns an unordered set of all user accounts in the repository.
|
PagedList<User,User.SortType> |
getUsers(PageCriteria<User.SortType> pageCriteria)
Returns the all user accounts meeting the supplied
PageCriteria's requirements |
void |
removeUser(String username)
Removes the user account identified by the given username from
the repository.
|
void |
removeUser(User user)
Removes a user account from the repository.
|
void |
removeUsers(Set<User> users)
Removes a set of user accounts from the repository.
|
void |
removeUsersByName(Set<String> usernames)
Removes the user accounts identified by the given usernames from
the repository.
|
User |
updateUser(User user)
Updates a user account that exists in the repository.
|
User getUser(String username)
username - the username of the account to returnDataRetrievalFailureException - if the account does not
existPagedList<User,User.SortType> getUsers(PageCriteria<User.SortType> pageCriteria)
PageCriteria's requirementspageCriteria - the Pagination Criteria for the PagedListIllegalArgumentException - if an invalid pageNumber is supplied in the PageCriteriaUser getUserByEmail(String email)
email - the email address of the account to returnDataRetrievalFailureException - if the account does not
existUser getUserByActivationId(String activationId)
activationId - the activation id associated with the account to returnDataRetrievalFailureException - if there is no user associated with this
activation id.Set<User> findUsersByPreference(String key, String value)
key - user preference key to matchvalue - user preference value to matchUser createUser(User user)
User
after saving the original one.user - the account to createDataIntegrityViolationException - if the username or
email address is already in useUser createUser(User user, ServiceListener[] listeners)
createUser(User). Sends the #EVENT_CREATE_USER
event to each provided listener.user - the account to createlisteners - an array of listeners to notifyDataIntegrityViolationException - if the username or
email address is already in useUser updateUser(User user)
User after saving the original one.user - the account to updateDataRetrievalFailureException - if the account does not
existDataIntegrityViolationException - if the username or
email address is already in usevoid removeUser(User user)
user - the account to removevoid removeUser(String username)
username - the username of the account to returnvoid removeUsers(Set<User> users) throws OverlordDeletionException
users - OverlordDeletionExceptionvoid removeUsersByName(Set<String> usernames) throws OverlordDeletionException
usernames - OverlordDeletionExceptionString generatePassword()
PasswordRecovery getPasswordRecovery(String key)
key - the password recovery key associated with the account to returnDataRetrievalFailureException - if there is no user associated with this
activation id.PasswordRecovery createPasswordRecovery(PasswordRecovery passwordRecovery)
passwordRecovery - the PasswordRecovery object to create in the repository.void deletePasswordRecovery(PasswordRecovery passwordRecovery)
passwordRecovery - the PasswordRecovery object to delete.Copyright © 2012–2016 1&1. All rights reserved.