Class LDAPGroupAttributesMapper

java.lang.Object
com.atlassian.crowd.directory.ldap.mapper.entity.LDAPGroupAttributesMapper

public class LDAPGroupAttributesMapper extends Object
  • Field Details

    • logger

      protected final org.slf4j.Logger logger
    • directoryId

      protected final long directoryId
    • groupType

      protected final GroupType groupType
    • objectClassAttribute

      protected final String objectClassAttribute
    • objectClassValue

      protected final String objectClassValue
    • nameAttribute

      protected final String nameAttribute
    • descriptionAttribute

      protected final String descriptionAttribute
    • externalIdAttribute

      protected final String 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 LDAP Attributes object containing the information in the Group 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 a Group object containing the information in the Attributes object.
      Parameters:
      directoryAttributes - The directory-specific {Attributes} object to take the values from
      Returns:
      A populated {Group} object.
      Throws:
      org.springframework.ldap.NamingException
    • getGroupDescriptionFromAttribute

      protected String getGroupDescriptionFromAttribute(Attributes directoryAttributes)
    • getGroupActiveFromAttribute

      protected boolean getGroupActiveFromAttribute(Attributes directoryAttributes)
    • getExternalIdFromAttribute

      protected String getExternalIdFromAttribute(Attributes directoryAttributes)
    • getGroupNameFromAttributes

      protected String getGroupNameFromAttributes(Attributes directoryAttributes) throws org.springframework.ldap.NamingException
      Throws:
      org.springframework.ldap.NamingException
    • getRequiredLdapAttributes

      public Set<String> getRequiredLdapAttributes()