Class RFC4519MemberDnRangedMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.attribute.group.RFC4519MemberDnRangedMapper
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRFC4519MemberDnRangedMapper(String groupMemberAttribute, boolean relaxedDnStandardisation) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the key to use when storing the attribute on an entity withAttributes.Only requests the base attribute.getValues(NameAttributesPair nameAttributesPair) Map the value of the key from a directory entry.
-
Field Details
-
ATTRIBUTE_KEY
- See Also:
-
-
Constructor Details
-
RFC4519MemberDnRangedMapper
-
-
Method Details
-
getKey
Description copied from interface:AttributeMapperGet the key to use when storing the attribute on an entity withAttributes.- Specified by:
getKeyin interfaceAttributeMapper- Returns:
- non-null key.
-
getValues
Description copied from interface:AttributeMapperMap the value of the key from a directory entry.- Specified by:
getValuesin interfaceAttributeMapper- 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
Only requests the base attribute. Ranged attributes will be returned automatically if necessary.- Specified by:
getRequiredLdapAttributesin interfaceAttributeMapper- Returns:
- the LDAP attributes that should be requested, or
nullfor all
-