com.atlassian.crowd.directory.ldap.name
Class SearchDN

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.name.SearchDN

public class SearchDN
extends Object


Field Summary
protected  org.slf4j.Logger logger
           
 
Constructor Summary
SearchDN(LDAPPropertiesMapper propertiesMapper, Converter converter)
           
 
Method Summary
 Name getBase()
          Returns a Name representing the DN beneath which all objects should reside.
 LdapName getGroup()
          Returns a Name representing the DN to anchor the search for groups.
 Name getNamingContext()
          Returns a Name representing the DN beneath which all objects should reside OR the blank root DSE if none is specified.
 LdapName getRole()
          Deprecated.  
protected  LdapName getSearchDN(String propertyName)
          Given an additional DN (eg.
 LdapName getUser()
          Returns a Name representing the DN to search beneath for users.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Constructor Detail

SearchDN

public SearchDN(LDAPPropertiesMapper propertiesMapper,
                Converter converter)
Method Detail

getGroup

public LdapName getGroup()
Returns a Name representing the DN to anchor the search for groups. Reads directory configuration to build the dn.

Returns:

getRole

public LdapName getRole()
Deprecated. 

Returns a Name representing the DN form which to search for roles. Reads directory configuration to build the dn.

Returns:

getUser

public LdapName getUser()
Returns a Name representing the DN to search beneath for users. Reads directory configuration to build the dn.

Returns:

getBase

public Name getBase()
             throws InvalidNameException
Returns a Name representing the DN beneath which all objects should reside.

Returns:
Throws:
InvalidNameException

getNamingContext

public Name getNamingContext()
Returns a Name representing the DN beneath which all objects should reside OR the blank root DSE if none is specified.

Returns:

getSearchDN

protected LdapName getSearchDN(String propertyName)
                        throws InvalidNameException
Given an additional DN (eg. "ou=Groups") and a base search DN (eg. "dc=example, dc=org") builds a full search DN "ou=Groups, dc=example, dc=org". Handles if there's no additional DN specified.

Parameters:
propertyName -
Returns:
Throws:
InvalidNameException


Copyright © 2013 Atlassian. All Rights Reserved.