Class NameWithExternalIdContextMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.NameWithExternalIdContextMapper
- All Implemented Interfaces:
ContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,,String>> org.springframework.ldap.core.ContextMapper
public class NameWithExternalIdContextMapper
extends Object
implements ContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>>
Maps the name and externalId attribute. Names of the attributes are provided in the constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionNameWithExternalIdContextMapper(String nameAttribute, String externalIdAttribute) -
Method Summary
Modifier and TypeMethodDescriptionReturns the LDAP attributes that should be requested in a search whereContextMapperWithRequiredAttributes.mapFromContext(Object)will be called on the results.mapFromContext(Object ctx)
-
Constructor Details
-
NameWithExternalIdContextMapper
-
-
Method Details
-
mapFromContext
- Specified by:
mapFromContextin interfaceorg.springframework.ldap.core.ContextMapper- Specified by:
mapFromContextin interfaceContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>>
-
getRequiredLdapAttributes
Description copied from interface:ContextMapperWithRequiredAttributesReturns the LDAP attributes that should be requested in a search whereContextMapperWithRequiredAttributes.mapFromContext(Object)will be called on the results. If an implementation returnsnullthen all attributes will be requested.- Specified by:
getRequiredLdapAttributesin interfaceContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>> - Returns:
- the LDAP attributes that should be requested, or
nullfor all
-