com.atlassian.user.impl.memory
Class MemoryUserManagerReadOnly
java.lang.Object
com.atlassian.user.impl.ReadOnlyUserManager
com.atlassian.user.impl.memory.MemoryUserManagerReadOnly
- All Implemented Interfaces:
- EntityManager, UserManager
public class MemoryUserManagerReadOnly
- extends ReadOnlyUserManager
- implements UserManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryUserManagerReadOnly
public MemoryUserManagerReadOnly()
MemoryUserManagerReadOnly
public MemoryUserManagerReadOnly(Repository repository,
MemoryProvider provider,
PasswordEncryptor passwordEncryptor)
init
public void init(HashMap args)
throws ConfigurationException
- Description copied from interface:
EntityManager
- Used during configuration initialization. Use a constructor for direct instantiation.
- Specified by:
init in interface EntityManager
- Throws:
ConfigurationException
createUser
public User createUser(String username)
throws DuplicateEntityException
- Specified by:
createUser in interface UserManager- Overrides:
createUser in class ReadOnlyUserManager
- Returns:
- a
User object.
- Throws:
DuplicateEntityException
createUser
public User createUser(String username,
String password)
throws EntityException
- Throws:
EntityException
removeUser
public void removeUser(User user)
throws EntityException
- Description copied from class:
ReadOnlyUserManager
- Removes the specified group, if it is present.
- Specified by:
removeUser in interface UserManager- Overrides:
removeUser in class ReadOnlyUserManager
- Throws:
EntityException - - representing a system error.
getPasswordEncryptor
public PasswordEncryptor getPasswordEncryptor(User user)
throws EntityException
- Returns:
- a
PasswordEncryptor which handles the encrypytion of passwords for users managed by this
object.
- Throws:
UnsupportedOperationException - - for UserManager objects which do not create User objects.
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(String username)
- Specified by:
getUser in interface UserManager
- Returns:
- - a
null or a User if one could be found.
getRepository
public Repository getRepository()
- Specified by:
getRepository in interface EntityManager
- Returns:
- the
Repository which is managed by this instance.
getRepository
public Repository getRepository(Entity entity)
throws EntityException
- Specified by:
getRepository in interface EntityManager
- Parameters:
entity -
- Returns:
- the
Repository in which the entity is stored, otherwise null.
- Throws:
EntityException