com.atlassian.crowd.integration.directory.connector.name
Interface Converter

All Known Implementing Classes:
GenericConverter

public interface Converter

Converts a string name into a Name, for use with spring-ldap.


Method Summary
 javax.naming.Name getName(java.lang.String dn)
          Escapes and converts a DN into a Name, for use with LDAP through JNDI.
 javax.naming.Name getName(java.lang.String attributeName, java.lang.String objectName, javax.naming.Name baseDN)
          Returns a Name escaped for JNDI and LDAP, for use with a directory.
 

Method Detail

getName

javax.naming.Name getName(java.lang.String dn)
                          throws ObjectNotFoundException
Escapes and converts a DN into a Name, for use with LDAP through JNDI.

Parameters:
dn -
Returns:
Throws:
ObjectNotFoundException

getName

javax.naming.Name getName(java.lang.String attributeName,
                          java.lang.String objectName,
                          javax.naming.Name baseDN)
                          throws ObjectNotFoundException
Returns a Name escaped for JNDI and LDAP, for use with a directory. Used when building a DN from an object name plus directory configuration information Given: attributeName: "cn" objectName: "Smith, John" baseDN: "dc=example, dc=org" It will return a Name that represents the DN: "cn=Smith\, John, dc=example, dc=org"

Parameters:
attributeName -
objectName -
baseDN - A correctly-escaped DN
Returns:
Throws:
ObjectNotFoundException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.