|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EvaluationContext
EvaluationContext is a helper class that provides access to
various elements required for PredicateEvaluators
during the query evaluation process.
| Method Summary | |
|---|---|
Node |
getNode(Row row)
Helper method for implementations that returns the Node behind
a Row. |
String |
getPath(Row row)
Helper method for returning the path behind a row. |
PredicateEvaluator |
getPredicateEvaluator(String type)
Retrieves a PredicateEvaluator for the given type. |
org.apache.sling.api.resource.Resource |
getResource(Row row)
Helper method that returns the resource for the given row. |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver()
Returns a (jcr) resource resolver based on the current session. |
Session |
getSession()
Returns the session under which the Query runs. |
| Method Detail |
|---|
PredicateEvaluator getPredicateEvaluator(String type)
PredicateEvaluator for the given type.
Session getSession()
Query runs.
org.apache.sling.api.resource.ResourceResolver getResourceResolver()
Node getNode(Row row)
Node behind
a Row. This method will be obsolete with JCR 2.0, where the
new Row.getNode() method will be available.
getPath(Row),
getResource(Row)String getPath(Row row)
null will be returned.
getNode(Row),
getResource(Row)org.apache.sling.api.resource.Resource getResource(Row row)
getPath(Row),
getNode(Row)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||