Class LdapSimpleExpression

  • All Implemented Interfaces:
    ILdapExpression

    public class LdapSimpleExpression
    extends java.lang.Object
    implements ILdapExpression
    This class represents an expression of the form var = val, var != val, var < val, var > val, var <= val, var >= val. Expressions are used as predicates for publishing rule selection.
    Version:
    $Revision$, $Date$
    Author:
    mzhao
    • Constructor Detail

      • LdapSimpleExpression

        public LdapSimpleExpression​(java.lang.String var,
                                    int op,
                                    java.lang.String val)
      • LdapSimpleExpression

        public LdapSimpleExpression​(java.lang.String prefix,
                                    java.lang.String var,
                                    int op,
                                    java.lang.String val)
    • Method Detail

      • parse

        public static ILdapExpression parse​(java.lang.String input)
                                     throws com.netscape.certsrv.ldap.ELdapException
        Throws:
        com.netscape.certsrv.ldap.ELdapException
      • evaluate

        public boolean evaluate​(SessionContext sc)
                         throws com.netscape.certsrv.ldap.ELdapException
        Description copied from interface: ILdapExpression
        Evaluate the Expression.
        Specified by:
        evaluate in interface ILdapExpression
        Parameters:
        sc - The SessionContext on which we are applying the condition.
        Returns:
        The return value.
        Throws:
        com.netscape.certsrv.ldap.ELdapException
      • evaluate

        public boolean evaluate​(com.netscape.certsrv.request.IRequest req)
                         throws com.netscape.certsrv.ldap.ELdapException
        Description copied from interface: ILdapExpression
        Evaluate the Expression.
        Specified by:
        evaluate in interface ILdapExpression
        Parameters:
        req - The PKIRequest on which we are applying the condition.
        Returns:
        The return value.
        Throws:
        com.netscape.certsrv.ldap.ELdapException
      • toString

        public java.lang.String toString()
        Description copied from interface: ILdapExpression
        Convert to a string.
        Specified by:
        toString in interface ILdapExpression
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of expression.