public class SubstringEvaluator<ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Constructor and Description |
---|
SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node,
Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a new SubstringEvaluator for substring expressions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
boolean |
evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluateId(ID id)
Evaluates whether or not a candidate, specified by an id, satisfies the
expression associated with this Evaluator .
|
org.apache.directory.shared.ldap.filter.SubstringNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
Pattern |
getPattern() |
public SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node, Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws Exception
node
- the substring expression nodedb
- the database this evaluator usesregistries
- the set of registriesException
- if there are failures accessing resources and the dbpublic boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry) throws Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
indexEntry
- the index record of the entry to evaluateException
- if there are faults during evaluationpublic boolean evaluateId(ID id) throws Exception
Evaluator
evaluateId
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
id
- the identifier for the candidate entryException
- if there are faults during evaluationpublic boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws Exception
Evaluator
evaluateEntry
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
entry
- the candidate entryException
- if there are faults during evaluationpublic Pattern getPattern()
public org.apache.directory.shared.ldap.filter.SubstringNode getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.