Class LDAPGroupAttributesMapper
java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.entity.LDAPGroupAttributesMapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLDAPGroupAttributesMapper(long directoryId, GroupType groupType, LDAPPropertiesMapper ldapPropertiesMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetExternalIdFromAttribute(Attributes directoryAttributes) protected booleangetGroupActiveFromAttribute(Attributes directoryAttributes) protected StringgetGroupDescriptionFromAttribute(Attributes directoryAttributes) protected StringgetGroupNameFromAttributes(Attributes directoryAttributes) mapAttributesFromGroup(Group group) Creates an LDAPAttributesobject containing the information in theGroupobject.mapGroupFromAttributes(Attributes directoryAttributes) Creates aGroupobject containing the information in theAttributesobject.
-
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 LDAPAttributesobject containing the information in theGroupobject.- 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 aGroupobject containing the information in theAttributesobject.- 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
-