public class NameWithExternalIdContextMapper extends Object implements ContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>>
Constructor and Description |
---|
NameWithExternalIdContextMapper(String nameAttribute,
String externalIdAttribute) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getRequiredLdapAttributes()
Returns the LDAP attributes that should be requested in a search where
ContextMapperWithRequiredAttributes.mapFromContext(Object) will
be called on the results. |
org.apache.commons.lang3.tuple.Pair<String,String> |
mapFromContext(Object ctx) |
public org.apache.commons.lang3.tuple.Pair<String,String> mapFromContext(Object ctx)
mapFromContext
in interface ContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>>
mapFromContext
in interface org.springframework.ldap.core.ContextMapper
public Set<String> getRequiredLdapAttributes()
ContextMapperWithRequiredAttributes
ContextMapperWithRequiredAttributes.mapFromContext(Object)
will
be called on the results. If an implementation returns null
then all attributes will
be requested.getRequiredLdapAttributes
in interface ContextMapperWithRequiredAttributes<org.apache.commons.lang3.tuple.Pair<String,String>>
null
for allCopyright © 2020 Atlassian. All rights reserved.