Class LDAPGroupAttributesMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.entity.LDAPGroupAttributesMapper
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLDAPGroupAttributesMapper
(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getExternalIdFromAttribute
(Attributes directoryAttributes) protected boolean
getGroupActiveFromAttribute
(Attributes directoryAttributes) protected String
getGroupDescriptionFromAttribute
(Attributes directoryAttributes) protected String
getGroupNameFromAttributes
(Attributes directoryAttributes) mapAttributesFromGroup
(Group group) Creates an LDAPAttributes
object containing the information in theGroup
object.mapGroupFromAttributes
(Attributes directoryAttributes) Creates aGroup
object containing the information in theAttributes
object.
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
directoryId
protected final long directoryId -
groupType
-
objectClassAttribute
-
objectClassValue
-
nameAttribute
-
descriptionAttribute
-
externalIdAttribute
-
-
Constructor Details
-
LDAPGroupAttributesMapper
public LDAPGroupAttributesMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper)
-
-
Method Details
-
mapAttributesFromGroup
public Attributes mapAttributesFromGroup(Group group) throws org.springframework.ldap.NamingException Creates an LDAPAttributes
object containing the information in theGroup
object.- Parameters:
group
- The object to take the values from- Returns:
- A populated directory-specific Attributes object.
- Throws:
org.springframework.ldap.NamingException
-
mapGroupFromAttributes
public GroupTemplateWithAttributes mapGroupFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException Creates aGroup
object containing the information in theAttributes
object.- Parameters:
directoryAttributes
- The directory-specific {Attributes} object to take the values from- Returns:
- A populated {Group} object.
- Throws:
org.springframework.ldap.NamingException
-
getGroupDescriptionFromAttribute
-
getGroupActiveFromAttribute
-
getExternalIdFromAttribute
-
getGroupNameFromAttributes
protected String getGroupNameFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException - Throws:
org.springframework.ldap.NamingException
-
getRequiredLdapAttributes
-