com.atlassian.crowd.integration.directory.connector.mapper.attribute
Interface AttributeMapper

All Known Implementing Classes:
MemberOfOverlayMapper, ObjectGUIDMapper, RFC2307GidNumberMapper, RFC2307MemberUidMapper, RFC4519MemberDnMapper, USNChangedMapper

public interface AttributeMapper

Maps a single attribute for an entity. This is used for CUSTOM attributes. Mandatory or field-level attributes are mapped via the LDAPUserAttributesMapper and the LDAPGroupAttributesMapper.


Method Summary
 java.lang.String getKey()
          Get the key to use when storing the attribute on an entity.
 java.util.List<java.lang.String> getValues(org.springframework.ldap.core.DirContextAdapter ctx)
          Map the value of the key from the directory context.
 

Method Detail

getKey

java.lang.String getKey()
Get the key to use when storing the attribute on an entity.

Returns:
non-null key.

getValues

java.util.List<java.lang.String> getValues(org.springframework.ldap.core.DirContextAdapter ctx)
                                           throws java.lang.Exception
Map the value of the key from the directory context.

Parameters:
ctx - directory context containing attributes.
Returns:
values.
Throws:
java.lang.Exception - error retrieving value. The attribute will not be set.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.