Package com.netscape.cmscore.ldap
Class LdapOrExpression
- java.lang.Object
-
- com.netscape.cmscore.ldap.LdapOrExpression
-
- All Implemented Interfaces:
ILdapExpression
public class LdapOrExpression extends java.lang.Object implements ILdapExpression
This class represents an Or expression of the form (var1 op val1 OR var2 op val2). Expressions are used as predicates for publishing rule selection.- Version:
- $Revision$, $Date$
- Author:
- mzhao
-
-
Constructor Summary
Constructors Constructor Description LdapOrExpression(ILdapExpression exp1, ILdapExpression exp2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(SessionContext sc)Evaluate the Expression.booleanevaluate(IRequest req)Evaluate the Expression.java.lang.StringtoString()Convert to a string.
-
-
-
Constructor Detail
-
LdapOrExpression
public LdapOrExpression(ILdapExpression exp1, ILdapExpression exp2)
-
-
Method Detail
-
evaluate
public boolean evaluate(SessionContext sc) throws ELdapException
Description copied from interface:ILdapExpressionEvaluate the Expression.- Specified by:
evaluatein interfaceILdapExpression- Parameters:
sc- The SessionContext on which we are applying the condition.- Returns:
- The return value.
- Throws:
ELdapException
-
evaluate
public boolean evaluate(IRequest req) throws ELdapException
Description copied from interface:ILdapExpressionEvaluate the Expression.- Specified by:
evaluatein interfaceILdapExpression- Parameters:
req- The PKIRequest on which we are applying the condition.- Returns:
- The return value.
- Throws:
ELdapException
-
toString
public java.lang.String toString()
Description copied from interface:ILdapExpressionConvert to a string.- Specified by:
toStringin interfaceILdapExpression- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of expression.
-
-