Class AbstractExpressionSlingQueryPipe
- java.lang.Object
-
- org.apache.sling.pipes.BasePipe
-
- org.apache.sling.pipes.internal.slingquery.AbstractSlingQueryPipe
-
- org.apache.sling.pipes.internal.slingquery.AbstractExpressionSlingQueryPipe
-
- All Implemented Interfaces:
Pipe
- Direct Known Subclasses:
ChildrenPipe,ClosestPipe,FindPipe,ParentsPipe,SiblingsPipe
public abstract class AbstractExpressionSlingQueryPipe extends AbstractSlingQueryPipe
deals with sling query pipe code that takes an expression as input
-
-
Field Summary
-
Fields inherited from class org.apache.sling.pipes.BasePipe
afterHook, beforeHook, bindingProviders, bindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, EMPTY_ITERATOR, IGNORED_NODES, IGNORED_PROPERTIES, parent, plumber, PN_AFTERHOOK, PN_BEFOREHOOK, PN_STATUS, PN_STATUS_MODIFIED, properties, READ_ONLY, resolver, resource, RESOURCE_TYPE, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractExpressionSlingQueryPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.apache.sling.query.SlingQuerygetQuery(org.apache.sling.api.resource.Resource resource)generates a sling query object out of a resourceprotected abstract org.apache.sling.query.SlingQuerygetQuery(org.apache.sling.api.resource.Resource resource, String expression)generates a sling query object out of a resource and an expression-
Methods inherited from class org.apache.sling.pipes.internal.slingquery.AbstractSlingQueryPipe
computeOutput, modifiesContent
-
Methods inherited from class org.apache.sling.pipes.BasePipe
after, before, getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getOutputBinding, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, provideAdditionalBindings, setParent, toString
-
-
-
-
Constructor Detail
-
AbstractExpressionSlingQueryPipe
protected AbstractExpressionSlingQueryPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
-
Method Detail
-
getQuery
protected abstract org.apache.sling.query.SlingQuery getQuery(org.apache.sling.api.resource.Resource resource, String expression)generates a sling query object out of a resource and an expression- Parameters:
resource- input resourceexpression- pipe's expression configuration- Returns:
- SlingQuery object
-
getQuery
protected org.apache.sling.query.SlingQuery getQuery(org.apache.sling.api.resource.Resource resource)
Description copied from class:AbstractSlingQueryPipegenerates a sling query object out of a resource- Specified by:
getQueryin classAbstractSlingQueryPipe- Parameters:
resource- input resource- Returns:
- SlingQuery object
-
-