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(RepositoryIdentifier repository,
MemoryProvider provider,
PasswordEncryptor passwordEncryptor)
getPasswordEncryptor
public PasswordEncryptor getPasswordEncryptor(User user)
throws EntityException
- Returns:
- a
PasswordEncryptor
which handles the encrypytion of passwords for users managed by this object.
- 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.
getIdentifier
public RepositoryIdentifier getIdentifier()
- Specified by:
getIdentifier
in interface EntityManager
- Returns:
- the
RepositoryIdentifier
which is managed by this instance.
getRepository
public RepositoryIdentifier getRepository(Entity entity)
throws EntityException
- Specified by:
getRepository
in interface EntityManager
- Returns:
- the
RepositoryIdentifier
in which the entity is stored, otherwise null.
- Throws:
EntityException
- if the entity cannot be found, or trying to retrieve it results in an error
Copyright © 2005-2007 Atlassian Software Systems Pty Ltd. All Rights Reserved.