com.atlassian.crowd.integration.directory.connector.mapper
Class UserContextMapper
java.lang.Object
com.atlassian.crowd.integration.directory.connector.mapper.UserContextMapper
- All Implemented Interfaces:
- org.springframework.ldap.core.ContextMapper
public class UserContextMapper
- extends java.lang.Object
- implements org.springframework.ldap.core.ContextMapper
Translates information returned from an LDAP directory into a LDAPUserWithAttributes
implementation of User.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directoryId
protected final long directoryId
ldapPropertiesMapper
protected final LDAPPropertiesMapper ldapPropertiesMapper
customAttributeMappers
protected final java.util.List<AttributeMapper> customAttributeMappers
UserContextMapper
public UserContextMapper(long directoryId,
LDAPPropertiesMapper ldapPropertiesMapper,
java.util.List<AttributeMapper> customAttributeMappers)
mapFromContext
public java.lang.Object mapFromContext(java.lang.Object ctx)
throws org.springframework.ldap.NamingException
- Called by Spring LDAP on every object fetched from the LDAP directory.
- Specified by:
mapFromContext in interface org.springframework.ldap.core.ContextMapper
- Parameters:
ctx - A DirContextAdapter containing information about the object
- Returns:
LDAPUserWithAttributes.
- Throws:
org.springframework.ldap.NamingException
getAttributesMapper
protected LDAPUserAttributesMapper getAttributesMapper()
- Split out so it can be overriden.
- Returns:
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.