Class LdapPredicateParser


  • public class LdapPredicateParser
    extends java.lang.Object
    Default implementation of predicate parser. Limitations: 1. Currently parentheses are not suported. 2. Only ==, != <, >, <= and >= operators are supported. 3. The only boolean operators supported are AND and OR. AND takes precedence over OR. Example: a AND b OR e OR c AND d is treated as (a AND b) OR e OR (c AND d) 4. If this is n't adequate, roll your own.
    Version:
    $Revision$, $Date$
    Author:
    mzhao
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AND  
      static int EXPRESSION  
      static org.slf4j.Logger logger  
      static int OP_AND  
      static int OP_OR  
      static java.lang.String OR  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static ILdapExpression parse​(java.lang.String predicateExpression)
      Parse the predicate expression and return a vector of expressions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LdapPredicateParser

        public LdapPredicateParser()
    • Method Detail

      • parse

        public static ILdapExpression parse​(java.lang.String predicateExpression)
                                     throws com.netscape.certsrv.ldap.ELdapException
        Parse the predicate expression and return a vector of expressions.
        Parameters:
        predicateExp - The predicate expression as read from the config file.
        Returns:
        expVector The vector of expressions.
        Throws:
        com.netscape.certsrv.ldap.ELdapException
      • main

        public static void main​(java.lang.String[] args)