com.atlassian.crowd.directory.ldap.mapper.attribute
Interface AttributeMapper

All Known Implementing Classes:
MemberOfOverlayMapper, ObjectGUIDMapper, RFC2307GidNumberMapper, RFC2307MemberUidMapper, RFC4519MemberDnMapper, RFC4519MemberDnRangedMapper, RFC4519MemberDnRangeOffsetMapper, 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.Set<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.Set<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:
the set of attribute values associated with the key. If no values are present an empty set will be returned
Throws:
java.lang.Exception - error retrieving value. The attribute will not be set.


Copyright © 2010 Atlassian. All Rights Reserved.