public class GroupContextMapper extends ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
LDAPGroupWithAttributes
implementation of Group
.Modifier and Type | Field and Description |
---|---|
protected long |
directoryId |
protected GroupType |
groupType |
protected LDAPPropertiesMapper |
ldapPropertiesMapper |
customAttributeMappers
Constructor and Description |
---|
GroupContextMapper(long directoryId,
GroupType groupType,
LDAPPropertiesMapper ldapPropertiesMapper,
List<AttributeMapper> customAttributeMappers) |
Modifier and Type | Method and Description |
---|---|
protected LDAPGroupAttributesMapper |
getAttributesMapper()
Split out so it can be overridden.
|
protected Set<String> |
getCoreRequiredLdapAttributes() |
LDAPGroupWithAttributes |
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 GroupType groupType
protected final LDAPPropertiesMapper ldapPropertiesMapper
public GroupContextMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper, List<AttributeMapper> customAttributeMappers)
protected Set<String> getCoreRequiredLdapAttributes()
getCoreRequiredLdapAttributes
in class ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
public LDAPGroupWithAttributes mapFromContext(org.springframework.ldap.core.DirContextAdapter context) throws org.springframework.ldap.NamingException
mapFromContext
in class ContextMapperWithCustomAttributes<LDAPGroupWithAttributes>
context
- A DirContextAdapter
containing information about the objectLDAPUserWithAttributes
.org.springframework.ldap.NamingException
protected LDAPGroupAttributesMapper getAttributesMapper()
Copyright © 2020 Atlassian. All rights reserved.