com.atlassian.crowd.integration.directory.connector.mapper.attribute
Class DNAttributeMapper

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.connector.mapper.attribute.DNAttributeMapper
All Implemented Interfaces:
AttributeMapper

public class DNAttributeMapper
extends java.lang.Object
implements AttributeMapper

Maps the distinguished name of an entity as an attribute.


Field Summary
static java.lang.String LDAP_DN
          Distinguished Name (DN) attribute name.
 
Constructor Summary
DNAttributeMapper(boolean useStringStandardisation)
           
 
Method Summary
 java.lang.String getKey()
          Get the key to use when storing the attribute on an entity.
 java.lang.String getValue(org.springframework.ldap.core.DirContextAdapter ctx)
          Map the value of the key from the directory context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LDAP_DN

public static final java.lang.String LDAP_DN
Distinguished Name (DN) attribute name.

See Also:
Constant Field Values
Constructor Detail

DNAttributeMapper

public DNAttributeMapper(boolean useStringStandardisation)
Method Detail

getKey

public java.lang.String getKey()
Description copied from interface: AttributeMapper
Get the key to use when storing the attribute on an entity.

Specified by:
getKey in interface AttributeMapper
Returns:
non-null key.

getValue

public java.lang.String getValue(org.springframework.ldap.core.DirContextAdapter ctx)
                          throws javax.naming.NamingException
Description copied from interface: AttributeMapper
Map the value of the key from the directory context.

Specified by:
getValue in interface AttributeMapper
Returns:
value.
Throws:
javax.naming.NamingException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.