com.atlassian.user.impl.memory
Class MemoryUserManagerReadOnly

java.lang.Object
  extended bycom.atlassian.user.impl.ReadOnlyUserManager
      extended bycom.atlassian.user.impl.memory.MemoryUserManagerReadOnly
All Implemented Interfaces:
EntityManager, UserManager

public class MemoryUserManagerReadOnly
extends ReadOnlyUserManager
implements UserManager


Constructor Summary
MemoryUserManagerReadOnly(RepositoryIdentifier repository, MemoryProvider provider, PasswordEncryptor passwordEncryptor)
           
 
Method Summary
 RepositoryIdentifier getIdentifier()
           
 PasswordEncryptor getPasswordEncryptor(User user)
           
 RepositoryIdentifier getRepository(Entity entity)
           
 User getUser(java.lang.String username)
           
 Pager getUserNames()
           
 Pager getUsers()
           
 
Methods inherited from class com.atlassian.user.impl.ReadOnlyUserManager
alterPassword, createUser, isCreative, isReadOnly, removeUser, saveUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.user.UserManager
alterPassword, createUser, isReadOnly, removeUser, saveUser
 
Methods inherited from interface com.atlassian.user.EntityManager
isCreative
 

Constructor Detail

MemoryUserManagerReadOnly

public MemoryUserManagerReadOnly(RepositoryIdentifier repository,
                                 MemoryProvider provider,
                                 PasswordEncryptor passwordEncryptor)
Method Detail

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-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.