com.netscape.certsrv.publish
Interface ILdapExpression


public interface ILdapExpression

Interface for a Ldap predicate expression.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Field Summary
static java.lang.String EQUAL_STR
           
static java.lang.String GE_STR
           
static java.lang.String GT_STR
           
static java.lang.String LE_STR
           
static java.lang.String LT_STR
           
static java.lang.String NEQUAL_STR
           
static int OP_EQUAL
           
static int OP_GE
           
static int OP_GT
           
static int OP_LE
           
static int OP_LT
           
static int OP_NEQUAL
           
 
Method Summary
 boolean evaluate(IRequest req)
          Evaluate the Expression.
 boolean evaluate(SessionContext sc)
          Evaluate the Expression.
 java.lang.String toString()
          Convert to a string.
 

Field Detail

OP_EQUAL

static final int OP_EQUAL
See Also:
Constant Field Values

OP_NEQUAL

static final int OP_NEQUAL
See Also:
Constant Field Values

OP_GT

static final int OP_GT
See Also:
Constant Field Values

OP_LT

static final int OP_LT
See Also:
Constant Field Values

OP_GE

static final int OP_GE
See Also:
Constant Field Values

OP_LE

static final int OP_LE
See Also:
Constant Field Values

EQUAL_STR

static final java.lang.String EQUAL_STR
See Also:
Constant Field Values

NEQUAL_STR

static final java.lang.String NEQUAL_STR
See Also:
Constant Field Values

GT_STR

static final java.lang.String GT_STR
See Also:
Constant Field Values

GE_STR

static final java.lang.String GE_STR
See Also:
Constant Field Values

LT_STR

static final java.lang.String LT_STR
See Also:
Constant Field Values

LE_STR

static final java.lang.String LE_STR
See Also:
Constant Field Values
Method Detail

evaluate

boolean evaluate(SessionContext sc)
                 throws ELdapException
Evaluate the Expression.

Parameters:
sc - The SessionContext on which we are applying the condition.
Returns:
The return value.
Throws:
ELdapExeption - Failed to evaluate expression.
ELdapException

evaluate

boolean evaluate(IRequest req)
                 throws ELdapException
Evaluate the Expression.

Parameters:
req - The PKIRequest on which we are applying the condition.
Returns:
The return value.
Throws:
ELdapExeption - Failed to evaluate expression.
ELdapException

toString

java.lang.String toString()
Convert to a string.

Overrides:
toString in class java.lang.Object
Returns:
String representation of expression.