Class PrimaryGroupIdMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.attribute.PrimaryGroupIdMapper
- All Implemented Interfaces:
AttributeMapper
Maps the primaryGroupId of a user.
This concept only applies to Active Directory.
- Since:
- v2.7
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Get the key to use when storing the attribute on an entity withAttributes
.Returns the LDAP attributes that should be requested in a search whereAttributeMapper.getValues(NameAttributesPair)
will be called on the results.getValues
(NameAttributesPair nameAttributesPair) Map the value of the key from a directory entry.
-
Field Details
-
ATTRIBUTE_KEY
Primary Group ID attribute name.- See Also:
-
-
Constructor Details
-
PrimaryGroupIdMapper
public PrimaryGroupIdMapper()
-
-
Method Details
-
getKey
Description copied from interface:AttributeMapper
Get the key to use when storing the attribute on an entity withAttributes
.- Specified by:
getKey
in interfaceAttributeMapper
- Returns:
- non-null key.
-
getValues
Description copied from interface:AttributeMapper
Map the value of the key from a directory entry.- Specified by:
getValues
in 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
Description copied from interface:AttributeMapper
Returns the LDAP attributes that should be requested in a search whereAttributeMapper.getValues(NameAttributesPair)
will be called on the results. If an implementation returnsnull
then all attributes will be requested.- Specified by:
getRequiredLdapAttributes
in interfaceAttributeMapper
- Returns:
- the LDAP attributes that should be requested, or
null
for all
-