|
||||||||||
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,
String plainTextPass)
Encrypts the plain password, sets it on the user, and saves the user. |
User |
createUser(String username)
Creates a new user with the username provided. |
User |
getUser(String username)
|
Pager<String> |
getUserNames()
|
Pager<User> |
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 |
---|
Pager<User> getUsers() throws EntityException
Pager
holding all users being managed.
EntityException
Pager<String> getUserNames() throws EntityException
Pager
holding the names of all users being managed.
EntityException
User getUser(String username) throws EntityException
null
or a User
if one could be found.
EntityException
User createUser(String username) throws EntityException
User
object representing the new user.
DuplicateEntityException
- if a user with the username already exists.
UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.
EntityException
void alterPassword(User user, String plainTextPass) throws EntityException
PasswordEncryptor
.
UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
.
EntityException
void saveUser(User user) throws EntityException, IllegalArgumentException
User.setEmail(String)
, User.setFullName(String)
or User.setPassword(String)
.
UnsupportedOperationException
- - if EntityManager.isCreative()
returns false
IllegalArgumentException
- if the user is null or not managed by this repository
EntityException
void removeUser(User user) throws EntityException, IllegalArgumentException
UnsupportedOperationException
- if isReadOnly(User)
returns true
.
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 |