public class LDAPExpr
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
APPROX |
LDAPExpr[] |
args |
java.lang.String |
attrName |
java.lang.String |
attrValue |
static int |
COMPLEX |
static int |
EQ |
static int |
GE |
static int |
LE |
static int |
NOT |
int |
operator |
static int |
OR |
static int |
SIMPLE |
Constructor and Description |
---|
LDAPExpr(java.lang.String filter) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compare(java.lang.Object obj,
int op,
java.lang.String s,
boolean matchCase)
Private methods
|
boolean |
evaluate(java.util.Dictionary p,
boolean matchCase)
Evaluate this LDAP filter.
|
boolean |
isSimple(java.util.List keywords,
java.util.List[] cache)
Checks if this LDAP expression is "simple".
|
static boolean |
query(java.lang.String filter,
java.util.Dictionary pd) |
java.lang.String |
toString() |
public static final int AND
public static final int OR
public static final int NOT
public static final int EQ
public static final int LE
public static final int GE
public static final int APPROX
public static final int COMPLEX
public static final int SIMPLE
public int operator
public LDAPExpr[] args
public java.lang.String attrName
public java.lang.String attrValue
public LDAPExpr(java.lang.String filter) throws InvalidSyntaxException
InvalidSyntaxException
public boolean isSimple(java.util.List keywords, java.util.List[] cache)
(name =value )
is simple if
keywords
,
and (| EXPR+ )
is simple if all EXPR
expressions are simple;cache
is
filled with mappings from the provided keywords to lists
of attribute values. The keyword-value-pairs are the ones that
satisfy this expression, for the given keywords.keywords
- The keywords to look for.cache
- An array (indexed by the keyword indexes) of lists to
fill in with values saturating this expression.true
if this expression is simple,
false
otherwise.public static boolean query(java.lang.String filter, java.util.Dictionary pd) throws InvalidSyntaxException
InvalidSyntaxException
public boolean evaluate(java.util.Dictionary p, boolean matchCase)
protected boolean compare(java.lang.Object obj, int op, java.lang.String s, boolean matchCase)
public java.lang.String toString()
toString
in class java.lang.Object