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 AttributeMapper
s.-
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 T
mapFromContext
(NameAttributesPair nameAttributesPair) final T
mapFromContext
(Object ctx)
-
Field Details
-
customAttributeMappers
-
-
Constructor Details
-
ContextMapperWithCustomAttributes
-
-
Method Details
-
mapFromContext
- Specified by:
mapFromContext
in interfaceorg.springframework.ldap.core.ContextMapper<T>
- Specified by:
mapFromContext
in interfaceContextMapperWithRequiredAttributes<T>
-
mapFromContext
-
getCoreRequiredLdapAttributes
-
getRequiredLdapAttributes
Description copied from interface:ContextMapperWithRequiredAttributes
Returns the LDAP attributes that should be requested in a search whereContextMapperWithRequiredAttributes.mapFromContext(Object)
will be called on the results. If an implementation returnsnull
then all attributes will be requested.- Specified by:
getRequiredLdapAttributes
in interfaceContextMapperWithRequiredAttributes<T>
- Returns:
- the LDAP attributes that should be requested, or
null
for all
-
aggregate
-