|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.user.impl.delegation.DelegatingListUserManager
Constructor Summary | |
DelegatingListUserManager(java.util.List userManagers)
|
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)
|
RepositoryIdentifier |
getIdentifier()
|
protected UserManager |
getMatchingUserManager(User user)
Helper method to locate the first userManager responsible for the given user, in the delegation. |
RepositoryIdentifier |
getRepository(Entity entity)
|
User |
getUser(java.lang.String username)
|
java.util.List |
getUserManagers()
|
Pager |
getUserNames()
|
Pager |
getUsers()
|
boolean |
isCreative()
Used to detemine whether an entity can be created (eg, can call UserManager.createUser(String) or
GroupManager.createGroup(String) |
boolean |
isReadOnly(User user)
|
void |
removeUser(User user)
Removes the specified group, if it is present. |
void |
saveUser(User user)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DelegatingListUserManager(java.util.List userManagers)
Method Detail |
public Pager getUsers() throws EntityException
getUsers
in interface UserManager
Pager
holding all users being managed.
EntityException
public Pager getUserNames() throws EntityException
getUserNames
in interface UserManager
Pager
holding the names of all users being managed.
EntityException
public User getUser(java.lang.String username) throws EntityException
getUser
in interface UserManager
User
if one could be found, otherwise null.
EntityException
- - representing the exception which prohibited looking for or
retrieving the user.public User createUser(java.lang.String username) throws EntityException
createUser
in interface UserManager
EntityException
- If user cannot be created in any user managers.public void alterPassword(User user, java.lang.String plainTextPass) throws EntityException
alterPassword
in interface UserManager
EntityException
- - representing a system error.public void saveUser(User user) throws EntityException
saveUser
in interface UserManager
EntityException
- - representing a system error.public void removeUser(User user) throws EntityException
removeUser
in interface UserManager
EntityException
- - prohibited removalpublic boolean isReadOnly(User user) throws EntityException
isReadOnly
in interface UserManager
RepositoryIdentifier
),
false indicates that the storage system will save changes or that this UserManager
does not
know about the User
.
EntityException
public RepositoryIdentifier getIdentifier()
getIdentifier
in interface EntityManager
RepositoryIdentifier
which is managed by this instance.public RepositoryIdentifier getRepository(Entity entity) throws EntityException
getRepository
in interface EntityManager
RepositoryIdentifier
in which the entity is stored, otherwise null.
EntityException
public boolean isCreative()
UserManager.createUser(String)
or
GroupManager.createGroup(String)
isCreative
in interface EntityManager
Entity
objects can be created by this manager, or false to indicate
not.protected UserManager getMatchingUserManager(User user) throws EntityException
EntityException
public java.util.List getUserManagers()
UserManager
s which this manager delegates to,
in the order of delegation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |