public class UserContextMapper extends ContextMapperWithCustomAttributes<LDAPUserWithAttributes>
LDAPUserWithAttributes
implementation of User
.Modifier and Type | Field and Description |
---|---|
protected long |
directoryId |
protected LDAPPropertiesMapper |
ldapPropertiesMapper |
customAttributeMappers
Constructor and Description |
---|
UserContextMapper(long directoryId,
LDAPPropertiesMapper ldapPropertiesMapper,
List<AttributeMapper> customAttributeMappers) |
Modifier and Type | Method and Description |
---|---|
protected LDAPUserAttributesMapper |
getAttributesMapper()
Split out so it can be overriden.
|
protected Set<String> |
getCoreRequiredLdapAttributes() |
LDAPUserWithAttributes |
mapFromContext(org.springframework.ldap.core.DirContextAdapter context)
Called by Spring LDAP on every object fetched from the LDAP directory.
|
aggregate, getRequiredLdapAttributes, mapFromContext
protected final long directoryId
protected final LDAPPropertiesMapper ldapPropertiesMapper
public UserContextMapper(long directoryId, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers)
protected Set<String> getCoreRequiredLdapAttributes()
getCoreRequiredLdapAttributes
in class ContextMapperWithCustomAttributes<LDAPUserWithAttributes>
public LDAPUserWithAttributes mapFromContext(org.springframework.ldap.core.DirContextAdapter context) throws org.springframework.ldap.NamingException
mapFromContext
in class ContextMapperWithCustomAttributes<LDAPUserWithAttributes>
context
- A DirContextAdapter
containing information about the objectLDAPUserWithAttributes
.org.springframework.ldap.NamingException
protected LDAPUserAttributesMapper getAttributesMapper()
Copyright © 2021 Atlassian. All rights reserved.