public abstract class AbstractSlingQueryPipe extends BasePipe
afterHook, beforeHook, bindingProviders, bindings, distributionAgent, DRYRUN_EXPR, DRYRUN_KEY, dryRunObject, EMPTY_ITERATOR, 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 and Description |
---|
AbstractSlingQueryPipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource,
PipeBindings upperBindings) |
Modifier and Type | Method and Description |
---|---|
protected Iterator<org.apache.sling.api.resource.Resource> |
computeOutput()
generate outputs out of input resource and abstract query
|
protected abstract org.apache.sling.query.SlingQuery |
getQuery(org.apache.sling.api.resource.Resource resource)
generates a sling query object out of a resource
|
boolean |
modifiesContent()
returns true if that pipe modifies content during its execution
|
after, before, getBindings, getComputedPath, getConfiguration, getDistributionAgent, getExpr, getInput, getName, getOutput, getOutputBinding, getParent, getPath, getPreviousPipe, getPreviousResource, getRawExpression, getRawPath, getResource, isDryRun, isRootPath, provideAdditionalBindings, setParent, toString
public AbstractSlingQueryPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings) throws Exception
Exception
public boolean modifiesContent()
Pipe
modifiesContent
in interface Pipe
modifiesContent
in class BasePipe
protected abstract org.apache.sling.query.SlingQuery getQuery(org.apache.sling.api.resource.Resource resource)
resource
- input resourceprotected Iterator<org.apache.sling.api.resource.Resource> computeOutput() throws Exception
computeOutput
in class BasePipe
ScriptException
- if any exception has occuredException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.