com.atlassian.user.impl.ldap.search
Class DefaultLDAPUserAdaptor
java.lang.Object
com.atlassian.user.impl.ldap.search.DefaultLDAPUserAdaptor
- All Implemented Interfaces:
- LDAPUserAdaptor
public class DefaultLDAPUserAdaptor
- extends Object
- implements LDAPUserAdaptor
|
Field Summary |
protected org.apache.log4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.log4j.Logger log
DefaultLDAPUserAdaptor
public DefaultLDAPUserAdaptor(LdapContextFactory repository,
LdapSearchProperties searchProperties,
LdapFilterFactory filterFactory)
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,
String[] attributesToReturnFromSearch)
throws RepositoryException
- Specified by:
search in interface LDAPUserAdaptor
- Throws:
RepositoryException
getUserAttributes
public LDAPPagerInfo getUserAttributes(String username,
String[] specifiedAttributes)
throws RepositoryException
- Specified by:
getUserAttributes in interface LDAPUserAdaptor
- Throws:
RepositoryException
getUserDN
public String getUserDN(User user)
throws EntityException
- Specified by:
getUserDN in interface LDAPUserAdaptor
- Throws:
EntityException
getUserDN
public String getUserDN(String username)
throws EntityException
- Specified by:
getUserDN in interface LDAPUserAdaptor
- Throws:
EntityException
addSearchTermToFilter
public StringBuffer addSearchTermToFilter(StringBuffer firstTerm,
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 filteraddedFilter - - a String holding a getGroupEntries Term to be ANDed.
- Returns:
String representing the completed firstTerm
Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.