public class LDAPGroupAttributesMapper extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
descriptionAttribute |
protected long |
directoryId |
protected String |
externalIdAttribute |
protected GroupType |
groupType |
protected org.slf4j.Logger |
logger |
protected String |
nameAttribute |
protected String |
objectClassAttribute |
protected String |
objectClassValue |
Constructor and Description |
---|
LDAPGroupAttributesMapper(long directoryId,
GroupType groupType,
LDAPPropertiesMapper ldapPropertiesMapper) |
Modifier and Type | Method and Description |
---|---|
protected String |
getExternalIdFromAttribute(Attributes directoryAttributes) |
protected boolean |
getGroupActiveFromAttribute(Attributes directoryAttributes) |
protected String |
getGroupDescriptionFromAttribute(Attributes directoryAttributes) |
protected String |
getGroupNameFromAttributes(Attributes directoryAttributes) |
Set<String> |
getRequiredLdapAttributes() |
Attributes |
mapAttributesFromGroup(Group group)
Creates an LDAP
Attributes object containing the information in the Group object. |
GroupTemplateWithAttributes |
mapGroupFromAttributes(Attributes directoryAttributes)
Creates a
Group object containing the information in the Attributes object. |
protected final org.slf4j.Logger logger
protected final long directoryId
protected final GroupType groupType
protected final String objectClassAttribute
protected final String objectClassValue
protected final String nameAttribute
protected final String descriptionAttribute
protected final String externalIdAttribute
public LDAPGroupAttributesMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper)
public Attributes mapAttributesFromGroup(Group group) throws org.springframework.ldap.NamingException
Attributes
object containing the information in the Group
object.group
- The object to take the values fromorg.springframework.ldap.NamingException
public GroupTemplateWithAttributes mapGroupFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException
Group
object containing the information in the Attributes
object.directoryAttributes
- The directory-specific {Attributes} object to take the values fromorg.springframework.ldap.NamingException
protected String getGroupDescriptionFromAttribute(Attributes directoryAttributes)
protected boolean getGroupActiveFromAttribute(Attributes directoryAttributes)
protected String getExternalIdFromAttribute(Attributes directoryAttributes)
protected String getGroupNameFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException
org.springframework.ldap.NamingException
Copyright © 2020 Atlassian. All rights reserved.