Class ContextMapperWithCustomAttributes<T>
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes<T>
- All Implemented Interfaces:
ContextMapperWithRequiredAttributes<T>,org.springframework.ldap.core.ContextMapper
- Direct Known Subclasses:
GroupContextMapper,UserContextMapper
public abstract class ContextMapperWithCustomAttributes<T>
extends Object
implements ContextMapperWithRequiredAttributes<T>
An abstract implementation of
ContextMapperWithRequiredAttributes for cases where
a mapper requires core attributes and also the attributes for any attached
custom AttributeMappers.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContextMapperWithCustomAttributes(List<AttributeMapper> customAttributeMappers) -
Method Summary
Modifier and TypeMethodDescriptionaggregate(AttributeMapper... mappers) Returns the LDAP attributes that should be requested in a search whereContextMapperWithRequiredAttributes.mapFromContext(Object)will be called on the results.abstract TmapFromContext(NameAttributesPair nameAttributesPair) final TmapFromContext(Object ctx)
-
Field Details
-
customAttributeMappers
-
-
Constructor Details
-
ContextMapperWithCustomAttributes
-
-
Method Details
-
mapFromContext
- Specified by:
mapFromContextin interfaceorg.springframework.ldap.core.ContextMapper<T>- Specified by:
mapFromContextin interfaceContextMapperWithRequiredAttributes<T>
-
mapFromContext
-
getCoreRequiredLdapAttributes
-
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<T>- Returns:
- the LDAP attributes that should be requested, or
nullfor all
-
aggregate
-