com.atlassian.crowd.directory.ldap.mapper.attribute
Class ObjectGUIDMapper

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.mapper.attribute.ObjectGUIDMapper
All Implemented Interfaces:
AttributeMapper

public class ObjectGUIDMapper
extends java.lang.Object
implements AttributeMapper

Maps the objectGUID on an entity. This concept only applies to Active Directory.


Field Summary
static java.lang.String ATTRIBUTE_KEY
          Object GUID attribute name.
 
Constructor Summary
ObjectGUIDMapper()
           
 
Method Summary
 java.lang.String getKey()
          Get the key to use when storing the attribute on an entity.
 java.util.Set<java.lang.String> getValues(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

ATTRIBUTE_KEY

public static final java.lang.String ATTRIBUTE_KEY
Object GUID attribute name.

See Also:
Constant Field Values
Constructor Detail

ObjectGUIDMapper

public ObjectGUIDMapper()
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.

getValues

public java.util.Set<java.lang.String> getValues(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:
getValues in interface AttributeMapper
Parameters:
ctx - directory context containing attributes.
Returns:
the set of attribute values associated with the key. If no values are present an empty set will be returned
Throws:
javax.naming.NamingException


Copyright © 2011 Atlassian. All Rights Reserved.