com.atlassian.user.impl.osuser
Class OSUUserManager
java.lang.Object
com.atlassian.user.impl.osuser.OSUEntityManager
com.atlassian.user.impl.osuser.OSUUserManager
- All Implemented Interfaces:
- EntityManager, UserManager
- public class OSUUserManager
- extends OSUEntityManager
- implements UserManager
An adaptor class for CredentialsProvider
and some of the higher level operations of UserManager
The rule is to use the credentialsProvider and/or profileProvider (for propertySets) for most things. Store() operations
must be called on the entity itself.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSUUserManager
public OSUUserManager(RepositoryIdentifier repository,
OSUAccessor accessor)
throws EntityException
getUsers
public Pager getUsers()
- Specified by:
getUsers
in interface UserManager
- Returns:
- a
Pager
holding all users being managed.
getUserNames
public Pager getUserNames()
throws EntityException
- Specified by:
getUserNames
in interface UserManager
- Returns:
- a
Pager
holding the names of all users being managed.
- Throws:
EntityException
getUser
public User getUser(java.lang.String username)
- Specified by:
getUser
in interface UserManager
- Returns:
- - a
null
or a User
if one could be found.
createUser
public User createUser(java.lang.String username)
throws EntityException
- Specified by:
createUser
in interface UserManager
- Returns:
- a
User
object.
- Throws:
EntityException
- - representing a system error
alterPassword
public void alterPassword(User user,
java.lang.String plainTextPass)
throws EntityException
- Encrypts the plain password, sets it on the user, and saves the user.
- Specified by:
alterPassword
in interface UserManager
- Throws:
EntityException
- - representing a system error.
removeUser
public void removeUser(User user)
throws EntityException
- Specified by:
removeUser
in interface UserManager
- Throws:
EntityException
- - representing a system error.
isReadOnly
public boolean isReadOnly(User user)
- Specified by:
isReadOnly
in interface UserManager
- Returns:
- true indicates that information on the user object cannot be altered in the storage system
(see
RepositoryIdentifier
),
false indicates that the storage system will save changes or that this UserManager
does not
know about the User
.
saveUser
public void saveUser(User user)
throws EntityException
- Specified by:
saveUser
in interface UserManager
- Throws:
EntityException
- - representing a system error.
getRepository
public RepositoryIdentifier getRepository(Entity entity)
throws EntityException
- Specified by:
getRepository
in interface EntityManager
- Returns:
- the
RepositoryIdentifier
of the repository in which the entity is stored, or null
if the entity cannot be found.
- Throws:
EntityException
- if the entity cannot be found, or trying to retrieve it results in an error
getAccessor
public OSUAccessor getAccessor()
Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.