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)
Private methods
|
boolean |
evaluate(java.util.Dictionary<java.lang.String,?> p,
boolean matchCase)
Evaluate this LDAP filter.
|
java.util.Set<java.lang.String> |
getMatchedObjectClasses()
Get a set of object classes that might match this LDAP expression.
|
boolean |
isSimple(java.util.List<java.lang.String> keywords,
java.util.List<java.lang.Object>[] cache,
boolean matchCase)
Checks if this LDAP expression is "simple".
|
static boolean |
query(java.lang.String filter,
java.util.Dictionary<java.lang.String,java.lang.Object> 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 java.util.Set<java.lang.String> getMatchedObjectClasses()
null
.public boolean isSimple(java.util.List<java.lang.String> keywords, java.util.List<java.lang.Object>[] cache, boolean matchCase)
(<it>name</it>=<it>value</it>)
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<java.lang.String,java.lang.Object> pd) throws InvalidSyntaxException
InvalidSyntaxException
public boolean evaluate(java.util.Dictionary<java.lang.String,?> p, boolean matchCase)
protected boolean compare(java.lang.Object obj, int op, java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object