com.atlassian.user.search.page
Class MockLdapContextFactory

java.lang.Object
  extended by com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory
      extended by com.atlassian.user.search.page.MockLdapContextFactory
All Implemented Interfaces:
com.atlassian.user.impl.ldap.repository.LdapContextFactory

public class MockLdapContextFactory
extends com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory


Field Summary
 
Fields inherited from interface com.atlassian.user.impl.ldap.repository.LdapContextFactory
BASE_GROUP_NAMESPACE, BASE_USER_NAMESPACE, BATCH_SIZE, EMAIL_ATTRIBUTE, FIRSTNAME_ATTRIBUTE, GROUP_SEARCH_ALL_DEPTHS, GROUP_SEARCH_FILTER, GROUPNAME_ATTRIBUTE, HOST, JNDI_INITIAL_CONTEXT_FACTORY, MEMBERSHIP_ATTRIBUTE, PASSWORD_ATTRIBUTE, PORT, PROVIDER_URL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIAL, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, SURNAME_ATTRIBUTE, TIME_TO_LIVE, USE_UNQUALIFIED_USER_NAME_FOR_MEMBERSHIP_COMPARISON, USER_SEARCH_ALL_DEPTHS, USER_SEARCH_FILTER, USERNAME_ATTRIBUTE
 
Constructor Summary
MockLdapContextFactory(List<? extends SearchResult> resultsToReturn)
           
 
Method Summary
 DirContext getLDAPContext()
           
 
Methods inherited from class com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory
getAuthenticationJndiEnvironment, getJNDIEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLdapContextFactory

public MockLdapContextFactory(List<? extends SearchResult> resultsToReturn)
Method Detail

getLDAPContext

public DirContext getLDAPContext()
                          throws com.atlassian.user.impl.RepositoryException
Specified by:
getLDAPContext in interface com.atlassian.user.impl.ldap.repository.LdapContextFactory
Overrides:
getLDAPContext in class com.atlassian.user.impl.ldap.repository.DefaultLdapContextFactory
Throws:
com.atlassian.user.impl.RepositoryException


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