|
Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory 11g Release 2 (11.1.2.2.0) E38583-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Filter
A search filter as defined in RFC 4511.
Applications interact with a filter using FilterVisitor
which is applied to a filter using the accept(FilterVisitor, Object)
method.
The RFC 4515 string representation of a filter can be generated using the toString()
method.
Creation of types of Filter is provided for
And
filter: newAndFilter(Collection<Filter>)
or newAndFilter(Filter[])
ApproximateMatch
filter: newApproxMatchFilter(String, ByteString)
EqualityMatch
filter: newEqualityMatchFilter(String, ByteString)
ExtensibleMatch
filter: newExtensibleMatchFilter(String, String, ByteString, boolean)
GreaterOrEqualMatch
filter: newGreaterOrEqualFilter(String, ByteString)
LessOrEqualMatch
filter: newLessOrEqualFilter(String, ByteString)
Not
filter: newNotFilter(Filter)
Or
filter: newOrFilter(Collection<Filter>)
or newOrFilter(Filter[])
Present
filter: newPresentFilter(String)
Substrings
filter: newSubstringsFilter(String, ByteString, java.util.List, ByteString)
A generic builder of Filter is also available from newFilter(String)
Method Summary | ||
---|---|---|
|
accept(FilterVisitor<R,P> v, P p) Applies a FilterVisitor to this Filter . |
|
ConditionResult |
matches(Entry entry) Indicates whether this Filter matches the provided Entry . |
|
java.lang.String |
toString() Returns a String whose contents is the LDAP string representation of this Filter . |
Method Detail |
---|
<R,P> R accept(FilterVisitor<R,P> v, P p)
FilterVisitor
to this Filter
.R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's methods.v
- The filter visitor.p
- Optional additional visitor parameter.ConditionResult matches(Entry entry) throws PluginException
Filter
matches the provided Entry
.entry
- The entry to be matched.true
if this Filter
matches the provided Entry
.PluginException
- if the provided entry is invalid.java.lang.String toString()
String
whose contents is the LDAP string representation of this Filter
.toString
in class java.lang.Object
Filter
.
|
Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory 11g Release 2 (11.1.2.2.0) E38583-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |