public abstract class ContextMapperWithCustomAttributes<T> extends Object implements ContextMapperWithRequiredAttributes<T>
ContextMapperWithRequiredAttributes for cases where
a mapper requires core attributes and also the attributes for any attached
custom AttributeMappers.| Modifier and Type | Field and Description |
|---|---|
protected List<AttributeMapper> |
customAttributeMappers |
| Constructor and Description |
|---|
ContextMapperWithCustomAttributes(List<AttributeMapper> customAttributeMappers) |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
aggregate(AttributeMapper... mappers) |
protected abstract Set<String> |
getCoreRequiredLdapAttributes() |
Set<String> |
getRequiredLdapAttributes()
Returns the LDAP attributes that should be requested in a search where
ContextMapperWithRequiredAttributes.mapFromContext(Object) will
be called on the results. |
abstract T |
mapFromContext(org.springframework.ldap.core.DirContextAdapter ctx) |
T |
mapFromContext(Object ctx) |
protected final List<AttributeMapper> customAttributeMappers
public ContextMapperWithCustomAttributes(List<AttributeMapper> customAttributeMappers)
public final T mapFromContext(Object ctx)
mapFromContext in interface ContextMapperWithRequiredAttributes<T>mapFromContext in interface org.springframework.ldap.core.ContextMapperpublic abstract T mapFromContext(org.springframework.ldap.core.DirContextAdapter ctx)
public Set<String> getRequiredLdapAttributes()
ContextMapperWithRequiredAttributesContextMapperWithRequiredAttributes.mapFromContext(Object) will
be called on the results. If an implementation returns null then all attributes will
be requested.getRequiredLdapAttributes in interface ContextMapperWithRequiredAttributes<T>null for allpublic static Set<String> aggregate(AttributeMapper... mappers)
Copyright © 2023 Atlassian. All rights reserved.