Class LdapQuery

    • Method Detail

      • getAttributes

        public String 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

        public String 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

        public String 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

        public Map<String,​StringgetParameters()
        Description copied from interface: Query
        Get the query parameter names.
        Returns:
        the query parameter names as a Collection.
      • getAdditionalConfiguration

        public Map<String,​StringgetAdditionalConfiguration()
        Description copied from interface: Query
        Get the additional query configuration information.
        Returns:
        the additional query configuration information as a Map of String -> String.
      • _buildAttributesMap

        protected Map<String,​String_buildAttributesMap​(String query)
        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.