com.atlassian.crowd.directory.ldap.mapper
Class GroupContextMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
com.atlassian.crowd.directory.ldap.mapper.GroupContextMapper
- All Implemented Interfaces:
- ContextMapperWithRequiredAttributes<LDAPGroupWithAttributes>, org.springframework.ldap.core.ContextMapper
public class GroupContextMapper
- extends ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
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
GroupContextMapper
public GroupContextMapper(long directoryId,
GroupType groupType,
LDAPPropertiesMapper ldapPropertiesMapper,
List<AttributeMapper> customAttributeMappers)
getCoreRequiredLdapAttributes
protected Set<String> getCoreRequiredLdapAttributes()
- Specified by:
getCoreRequiredLdapAttributes in class ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
mapFromContext
public LDAPGroupWithAttributes mapFromContext(org.springframework.ldap.core.DirContextAdapter context)
throws org.springframework.ldap.NamingException
- Called by Spring LDAP on every object fetched from the LDAP directory.
- Specified by:
mapFromContext in class ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
- 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 overridden.
- Returns:
Copyright © 2014 Atlassian. All Rights Reserved.