|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
Creates a new user with the username provided. |
User |
getUser(java.lang.String username)
|
Pager |
getUserNames()
|
Pager |
getUsers()
|
boolean |
isReadOnly(User user)
|
void |
removeUser(User user)
Removes the specified user from the repository. |
void |
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 |
public Pager getUsers() throws EntityException
Pager
holding all users being managed.
EntityException
public Pager getUserNames() throws EntityException
Pager
holding the names of all users being managed.
EntityException
public User getUser(java.lang.String username) throws EntityException
null
or a User
if one could be found.
EntityException
public User createUser(java.lang.String username) throws EntityException
User
object representing the new user.
DuplicateEntityException
- if a user with the username already exists.
java.lang.UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.
EntityException
public void alterPassword(User user, java.lang.String plainTextPass) throws EntityException
PasswordEncryptor
.
java.lang.UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.
EntityException
public void saveUser(User user) throws EntityException, java.lang.IllegalArgumentException
User.setEmail(String)
, User.setFullName(String)
or User.setPassword(String)
.
java.lang.UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
java.lang.IllegalArgumentException
- if the user is null or not managed by this repository
EntityException
public 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
public 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 |