com.atlassian.user.impl.ldap.search
Class DefaultLDAPUserAdaptor

java.lang.Object
  extended bycom.atlassian.user.impl.ldap.search.DefaultLDAPUserAdaptor
All Implemented Interfaces:
LDAPUserAdaptor

public class DefaultLDAPUserAdaptor
extends java.lang.Object
implements LDAPUserAdaptor


Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
DefaultLDAPUserAdaptor(LdapContextFactory repository, LdapSearchProperties searchProperties, LdapFilterFactory filterFactory)
           
 
Method Summary
 java.lang.StringBuffer addSearchTermToFilter(java.lang.StringBuffer firstTerm, java.lang.String addedFilter)
          Builds a LDAP getGroupEntries filter matching RFC-2254 by ANDing the getGroupEntries term.
 LDAPPagerInfo getUserAttributes(java.lang.String username, java.lang.String[] specifiedAttributes)
           
 java.lang.String getUserDN(java.lang.String username)
           
 java.lang.String getUserDN(User user)
           
 LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter searchFilter)
           
 LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter userFilter, java.lang.String[] attributesToReturnFromSearch)
           
 
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

DefaultLDAPUserAdaptor

public DefaultLDAPUserAdaptor(LdapContextFactory repository,
                              LdapSearchProperties searchProperties,
                              LdapFilterFactory filterFactory)
Method Detail

search

public LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter searchFilter)
                     throws RepositoryException
Specified by:
search in interface LDAPUserAdaptor
Throws:
RepositoryException

search

public LDAPPagerInfo search(net.sf.ldaptemplate.support.filter.Filter userFilter,
                            java.lang.String[] attributesToReturnFromSearch)
                     throws RepositoryException
Specified by:
search in interface LDAPUserAdaptor
Throws:
RepositoryException

getUserAttributes

public LDAPPagerInfo getUserAttributes(java.lang.String username,
                                       java.lang.String[] specifiedAttributes)
                                throws RepositoryException
Specified by:
getUserAttributes in interface LDAPUserAdaptor
Throws:
RepositoryException

getUserDN

public java.lang.String getUserDN(User user)
                           throws EntityException
Specified by:
getUserDN in interface LDAPUserAdaptor
Throws:
EntityException

getUserDN

public java.lang.String getUserDN(java.lang.String username)
                           throws EntityException
Specified by:
getUserDN in interface LDAPUserAdaptor
Throws:
EntityException

addSearchTermToFilter

public java.lang.StringBuffer addSearchTermToFilter(java.lang.StringBuffer firstTerm,
                                                    java.lang.String addedFilter)
Builds a LDAP getGroupEntries filter matching RFC-2254 by ANDing the getGroupEntries term.

Parameters:
firstTerm - - a StringBuffer which will become the final getGroupEntries filter
addedFilter - - a String holding a getGroupEntries Term to be ANDed.
Returns:
String representing the completed firstTerm


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