Class ObjectGUIDMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.attribute.ObjectGUIDMapper
- All Implemented Interfaces:
AttributeMapper
Maps the objectGUID on an entity.
This concept only applies to Active Directory.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
Object GUID attribute name.- See Also:
-
-
Constructor Details
-
ObjectGUIDMapper
public ObjectGUIDMapper()
-
-
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:
NamingException
-
getRequiredLdapAttributes
Description copied from interface:AttributeMapperReturns the LDAP attributes that should be requested in a search whereAttributeMapper.getValues(NameAttributesPair)will be called on the results. If an implementation returnsnullthen all attributes will be requested.- Specified by:
getRequiredLdapAttributesin interfaceAttributeMapper- Returns:
- the LDAP attributes that should be requested, or
nullfor all
-