java.lang.Object
org.ametys.plugins.externaldata.data.AbstractQuery
org.ametys.plugins.externaldata.data.ldap.LdapQuery
All Implemented Interfaces:
Query

public class LdapQuery extends AbstractQuery
A LDAP query.
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      Description copied from interface: Query
      Get the query type.
      Returns:
      the query type.
    • getAttributes

      Get the LDAP attributes to return.
      Returns:
      the LDAP attributes.
    • setAttributes

      public void setAttributes(String attributes)
      Set the LDAP attributes to return.
      Parameters:
      attributes - LDAP attributes to return.
    • getConstraint

      Get the LDAP constraint.
      Returns:
      the LDAP constraint.
    • setConstraint

      public void setConstraint(String constraint)
      Set the LDAP constraint.
      Parameters:
      constraint - the LDAP constraint to set.
    • setRelativeDN

      public void setRelativeDN(String relativeDN)
      Set relative DN for users
      Parameters:
      relativeDN - the LDAP relative DN for users
    • getRelativeDN

      Get the relative DN for users
      Returns:
      the relative DN for users
    • getScope

      public String getScope()
      Get the LDAP scope.
      Returns:
      the LDAP scope
    • setScope

      public void setScope(String scope)
      Set the LDAP scope.
      Parameters:
      scope - the LDAP scope to set
    • getParameters

      Description copied from interface: Query
      Get the query parameter names.
      Returns:
      the query parameter names as a Collection.
    • getAdditionalConfiguration

      Description copied from interface: Query
      Get the additional query configuration information.
      Returns:
      the additional query configuration information as a Map of String -> String.
    • getAttributesAsMap

      Get attributes as Map.
      Returns:
      the attributes as a Map of attributeName -> label.
    • _buildAttributesMap

      Extract attributes from a query string in the form "attr1[label1], attr2[label2], attr3".
      Parameters:
      query - the query containing parameters.
      Returns:
      the attributes as a Map of label -> attributeName. If no label was provided between brackets, the name is used.