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
 String getKey()
          Get the key to use when storing the attribute on an entity.
 List<String> getValues(org.springframework.ldap.core.DirContextAdapter ctx)
          Map the value of the key from the directory context.
 

Method Detail

getKey

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

Returns:
non-null key.

getValues

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

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.