Class RFC4519MemberDnRangedMapper

java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.attribute.group.RFC4519MemberDnRangedMapper
All Implemented Interfaces:
AttributeMapper

public class RFC4519MemberDnRangedMapper extends Object implements AttributeMapper
A memberDN mapper that will handle both normal and ranged memberships attribute ("member" and "member;") used in Microsoft Active Directory.

Tested by: _testBrowseLargeGroup() in DnRangeTest

  • Field Details

  • Constructor Details

    • RFC4519MemberDnRangedMapper

      public RFC4519MemberDnRangedMapper(String groupMemberAttribute, boolean relaxedDnStandardisation)
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: AttributeMapper
      Get the key to use when storing the attribute on an entity with Attributes.
      Specified by:
      getKey in interface AttributeMapper
      Returns:
      non-null key.
    • getValues

      public Set<String> getValues(NameAttributesPair nameAttributesPair) throws Exception
      Description copied from interface: AttributeMapper
      Map the value of the key from a directory entry.
      Specified by:
      getValues in interface AttributeMapper
      Parameters:
      nameAttributesPair - directory entry containing attributes.
      Returns:
      the set of attribute values associated with the key. If no values are present an empty set will be returned
      Throws:
      Exception - error retrieving value. The attribute will not be set.
    • getRequiredLdapAttributes

      public Set<String> getRequiredLdapAttributes()
      Only requests the base attribute. Ranged attributes will be returned automatically if necessary.
      Specified by:
      getRequiredLdapAttributes in interface AttributeMapper
      Returns:
      the LDAP attributes that should be requested, or null for all