com.day.cq.search.eval
Interface EvaluationContext

All Known Implementing Classes:
EvaluationContextImpl

public interface EvaluationContext

EvaluationContext is a helper class that provides access to various elements required for PredicateEvaluators during the query evaluation process.

Since:
5.2

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

getPredicateEvaluator

PredicateEvaluator getPredicateEvaluator(String type)
Retrieves a PredicateEvaluator for the given type.


getSession

Session getSession()
Returns the session under which the Query runs.


getResourceResolver

org.apache.sling.api.resource.ResourceResolver getResourceResolver()
Returns a (jcr) resource resolver based on the current session.


getNode

Node getNode(Row row)
Helper method for implementations that returns the Node behind a Row. This method will be obsolete with JCR 2.0, where the new Row.getNode() method will be available.

See Also:
getPath(Row), getResource(Row)

getPath

String getPath(Row row)
Helper method for returning the path behind a row. If an error occurs, null will be returned.

See Also:
getNode(Row), getResource(Row)

getResource

org.apache.sling.api.resource.Resource getResource(Row row)
Helper method that returns the resource for the given row.

See Also:
getPath(Row), getNode(Row)


Copyright © 2009 Day Management AG. All Rights Reserved.