com.atlassian.crowd.integration.directory.connector.name
Class SearchDN

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

public class SearchDN
extends java.lang.Object


Field Summary
protected  org.apache.log4j.Logger logger
           
 
Constructor Summary
SearchDN(LDAPPropertiesMapper propertiesMapper, Converter converter)
           
 
Method Summary
 javax.naming.Name getBase()
          Returns a Name representing the DN beneath which all objects should reside.
 javax.naming.Name getGroup()
          Returns a Name representing the DN to anchor the search for groups.
 javax.naming.Name getNamingContext()
          Returns a Name representing the DN beneath which all objects should reside OR the blank root DSE if none is specified.
 javax.naming.Name getRole()
          Returns a Name representing the DN form which to search for roles.
protected  javax.naming.Name getSearchDN(java.lang.String propertyName)
          Given an additional DN (eg.
 javax.naming.Name 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.apache.log4j.Logger logger
Constructor Detail

SearchDN

public SearchDN(LDAPPropertiesMapper propertiesMapper,
                Converter converter)
Method Detail

getGroup

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

Returns:
Throws:
ObjectNotFoundException

getRole

public javax.naming.Name getRole()
Returns a Name representing the DN form which to search for roles. Reads directory configuration to build the dn.

Returns:
Throws:
ObjectNotFoundException

getUser

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

Returns:
Throws:
ObjectNotFoundException

getBase

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

Returns:
Throws:
ObjectNotFoundException

getNamingContext

public javax.naming.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 javax.naming.Name getSearchDN(java.lang.String propertyName)
                                 throws ObjectNotFoundException
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:
ObjectNotFoundException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.