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
Translates information returned from an LDAP directory into a
LDAPGroupWithAttributes
implementation of Group.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longprotected final GroupTypeprotected final LDAPPropertiesMapperFields inherited from class com.atlassian.crowd.directory.ldap.mapper.ContextMapperWithCustomAttributes
customAttributeMappers -
Constructor Summary
ConstructorsConstructorDescriptionGroupContextMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers) -
Method Summary
Modifier and TypeMethodDescriptionprotected LDAPGroupAttributesMapperSplit 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 -
groupType
-
ldapPropertiesMapper
-
-
Constructor Details
-
GroupContextMapper
public GroupContextMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers)
-
-
Method Details
-
getCoreRequiredLdapAttributes
- Specified by:
getCoreRequiredLdapAttributesin classContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
-
mapFromContext
public LDAPGroupWithAttributes mapFromContext(NameAttributesPair nameAttributesPair) throws org.springframework.ldap.NamingException Called by Spring LDAP on every object fetched from the LDAP directory.- Specified by:
mapFromContextin classContextMapperWithCustomAttributes<LDAPGroupWithAttributes>- 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.
-