Class LDAPFilterBuilder


  • public class LDAPFilterBuilder
    extends Object
    Creates an LDAP query filter from a Nuxeo Expression.
    Since:
    10.3
    • Constructor Detail

      • LDAPFilterBuilder

        public LDAPFilterBuilder​(LDAPDirectory directory)
    • Method Detail

      • walk

        public void walk​(Expression expression)
      • walkExpression

        public void walkExpression​(Expression expr)
      • checkDateLiteralForCast

        protected void checkDateLiteralForCast​(Operator op,
                                               Operand value,
                                               String name)
      • checkDateLiteralForCast

        protected void checkDateLiteralForCast​(Operand value,
                                               String name)
      • walkNot

        public void walkNot​(Operand value)
      • walkIsNull

        public void walkIsNull​(Operand value)
      • walkIsNotNull

        public void walkIsNotNull​(Operand value)
      • walkAndMultiExpression

        public void walkAndMultiExpression​(MultiExpression expr)
      • walkAnd

        public void walkAnd​(Expression expr)
      • walkOrMultiExpression

        public void walkOrMultiExpression​(MultiExpression expr)
      • walkOr

        public void walkOr​(Expression expr)
      • walkMulti

        protected void walkMulti​(String op,
                                 List<? extends Operand> values)
      • walkNotEq

        public void walkNotEq​(Operand lvalue,
                              Operand rvalue)
      • walkLtEq

        public void walkLtEq​(Operand lvalue,
                             Operand rvalue)
      • walkGtEq

        public void walkGtEq​(Operand lvalue,
                             Operand rvalue)
      • walkBetween

        public void walkBetween​(Operand lvalue,
                                Operand rvalue,
                                boolean positive)
      • walkIn

        public void walkIn​(Operand lvalue,
                           Operand rvalue,
                           boolean positive)
      • walkLike

        public void walkLike​(Operand lvalue,
                             Operand rvalue,
                             boolean positive,
                             boolean caseInsensitive)
      • walkLikeWildcard

        public void walkLikeWildcard​(String like)
        Turns a NXQL LIKE pattern into an LDAP wildcard.

        % and _ are standard wildcards, and \ escapes them.

      • walkOperand

        public void walkOperand​(Operand operand)
      • walkLiteral

        public void walkLiteral​(Operand operand)
      • walkBooleanLiteral

        public void walkBooleanLiteral​(BooleanLiteral lit)
      • walkDateLiteral

        public void walkDateLiteral​(DateLiteral lit)
      • walkDoubleLiteral

        public void walkDoubleLiteral​(DoubleLiteral lit)
      • walkIntegerLiteral

        public void walkIntegerLiteral​(IntegerLiteral lit)
      • walkStringLiteral

        public void walkStringLiteral​(StringLiteral lit)
      • addFilterParam

        protected void addFilterParam​(Serializable value)
      • walkReference

        public Field walkReference​(Operand value)