Class UserContextMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes<LDAPUserWithAttributes>
com.atlassian.crowd.directory.ldap.mapper.UserContextMapper
- All Implemented Interfaces:
ContextMapperWithRequiredAttributes<LDAPUserWithAttributes>
,org.springframework.ldap.core.ContextMapper
- Direct Known Subclasses:
ActiveDirectoryUserContextMapper
Translates information returned from an LDAP directory into a
LDAPUserWithAttributes
implementation of User
.-
Field Summary
FieldsFields inherited from class com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes
customAttributeMappers
-
Constructor Summary
ConstructorsConstructorDescriptionUserContextMapper
(long directoryId, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers) -
Method Summary
Modifier and TypeMethodDescriptionprotected LDAPUserAttributesMapper
Split out so it can be overridden.mapFromContext
(NameAttributesPair nameAttributesPair) Called by Spring LDAP on every object fetched from the LDAP directory.Methods inherited from class com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes
aggregate, getRequiredLdapAttributes, mapFromContext
-
Field Details
-
directoryId
protected final long directoryId -
ldapPropertiesMapper
-
-
Constructor Details
-
UserContextMapper
public UserContextMapper(long directoryId, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers)
-
-
Method Details
-
getCoreRequiredLdapAttributes
- Specified by:
getCoreRequiredLdapAttributes
in classContextMapperWithCustomAttributes<LDAPUserWithAttributes>
-
mapFromContext
public LDAPUserWithAttributes mapFromContext(NameAttributesPair nameAttributesPair) throws org.springframework.ldap.NamingException Called by Spring LDAP on every object fetched from the LDAP directory.- Specified by:
mapFromContext
in classContextMapperWithCustomAttributes<LDAPUserWithAttributes>
- Parameters:
nameAttributesPair
- A directory entry containing information about the object- Returns:
LDAPUserWithAttributes
.- Throws:
org.springframework.ldap.NamingException
-
getAttributesMapper
Split out so it can be overridden.
-