| Modifier and Type | Method and Description |
|---|---|
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). |
String |
generatePassword()
Generates a random password in a format suitable for presentation as an authentication credential.
|
User |
getUser(String username)
Returns the user account identified by the given username.
|
User |
getUserByEmail(String email)
Returns the user account identified by the given email address.
|
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 existUser getUserByEmail(String email)
email - the email address of the account to returnDataRetrievalFailureException - if the account does not existUser 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()
Copyright © 2012–2018 1&1. All rights reserved.