com.atlassian.crowd.integration.directory.connector.mapper
Class GroupContextMapper
java.lang.Object
com.atlassian.crowd.integration.directory.connector.mapper.GroupContextMapper
- All Implemented Interfaces:
- org.springframework.ldap.core.ContextMapper
public class GroupContextMapper
- extends java.lang.Object
- implements org.springframework.ldap.core.ContextMapper
Translates information returned from an LDAP directory into a LDAPGroupWithAttributes
implementation of Group.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
directoryId
protected final long directoryId
groupType
protected final GroupType groupType
ldapPropertiesMapper
protected final LDAPPropertiesMapper ldapPropertiesMapper
customAttributeMappers
protected final java.util.List<AttributeMapper> customAttributeMappers
GroupContextMapper
public GroupContextMapper(long directoryId,
GroupType groupType,
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 LDAPGroupAttributesMapper getAttributesMapper()
- Split out so it can be overriden.
- Returns:
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.