com.atlassian.user.impl.ldap
Class LDAPUserManagerReadOnly

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

public class LDAPUserManagerReadOnly
extends ReadOnlyUserManager


Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
LDAPUserManagerReadOnly(RepositoryIdentifier repositoryIdentifier, LdapContextFactory repository, LdapSearchProperties searchProperties, LdapFilterFactory filterFactory)
           
 
Method Summary
 RepositoryIdentifier getIdentifier()
           
 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
 

Field Detail

log

protected final org.apache.log4j.Logger log
Constructor Detail

LDAPUserManagerReadOnly

public LDAPUserManagerReadOnly(RepositoryIdentifier repositoryIdentifier,
                               LdapContextFactory repository,
                               LdapSearchProperties searchProperties,
                               LdapFilterFactory filterFactory)
Method Detail

getUsers

public Pager getUsers()
               throws EntityException
Returns:
all users in the configured repository
Throws:
RepositoryException
EntityException

getUserNames

public Pager getUserNames()
                   throws EntityException
Returns:
a Pager holding the names of all users being managed.
Throws:
EntityException

getUser

public User getUser(java.lang.String username)
             throws EntityException
Returns:
a null or a User if one could be found.
Throws:
EntityException

getIdentifier

public RepositoryIdentifier getIdentifier()
Returns:
the RepositoryIdentifier which is managed by this instance.

getRepository

public RepositoryIdentifier getRepository(Entity entity)
                                   throws EntityException
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


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.