|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserManager
| Method Summary | |
|---|---|
void |
alterPassword(User user,
java.lang.String plainTextPass)
Encrypts the plain password, sets it on the user, and saves the user. |
User |
createUser(java.lang.String username)
Deprecated. since 3.0 use createUser(User, Credential) because this is an inconvenient way to create users now that the
setFullName() and setEmail() methods are no longer on the User interface |
User |
createUser(User userTemplate,
Credential credential)
Creates a new user with the provided user details and encrypted password. |
User |
getUser(java.lang.String username)
|
Pager<java.lang.String> |
getUserNames()
|
Pager<User> |
getUsers()
|
boolean |
isReadOnly(User user)
|
User |
onExternalUserRename(java.lang.String oldName,
java.lang.String newName)
Notifies the manager of a user rename done externally |
void |
removeUser(User user)
Removes the specified user from the repository. |
User |
renameUser(User user,
java.lang.String userName)
Renames the user to the new name. |
User |
saveUser(User user)
Persists any changes made to the user to the storage system used by this user manager. |
| Methods inherited from interface com.atlassian.user.EntityManager |
|---|
getIdentifier, getRepository, isCreative |
| Method Detail |
|---|
Pager<User> getUsers()
throws EntityException
Pager holding all users being managed.
EntityException
Pager<java.lang.String> getUserNames()
throws EntityException
Pager holding the names of all users being managed.
EntityException
User getUser(java.lang.String username)
throws EntityException
null or a User if one could be found.
EntityException
User createUser(java.lang.String username)
throws EntityException
createUser(User, Credential) because this is an inconvenient way to create users now that the
setFullName() and setEmail() methods are no longer on the User interface
User object representing the new user.
DuplicateEntityException - if a user with the username already exists.
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false.
EntityException
User createUser(User userTemplate,
Credential credential)
throws EntityException,
java.lang.UnsupportedOperationException,
java.lang.IllegalArgumentException
userTemplate - the user template to use, which must have a non-null user namecredential - the user's password
DuplicateEntityException - if a user with the same name already exists
RepositoryException - if there is a problem communicating with the underlying storage mechanism
java.lang.UnsupportedOperationException - if EntityManager.isCreative() returns false
java.lang.IllegalArgumentException - if the user, user name or credential is null
EntityException
void alterPassword(User user,
java.lang.String plainTextPass)
throws EntityException
PasswordEncryptor.
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false.
EntityException
User renameUser(User user,
java.lang.String userName)
throws EntityException
EntityException
User onExternalUserRename(java.lang.String oldName,
java.lang.String newName)
throws EntityException
EntityException
User saveUser(User user)
throws EntityException,
java.lang.IllegalArgumentException
User.
java.lang.UnsupportedOperationException - - if EntityManager.isCreative() returns false
java.lang.IllegalArgumentException - if the user is null or not managed by this repository
EntityException
void removeUser(User user)
throws EntityException,
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException - if isReadOnly(User) returns true.
java.lang.IllegalArgumentException - if the user is null or not managed by this repository
EntityException
boolean isReadOnly(User user)
throws EntityException
RepositoryIdentifier),
false indicates that the storage system will save changes or that this UserManager does not
know about the User.
EntityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||