Class ChildrenPipe
- java.lang.Object
-
- org.apache.sling.pipes.BasePipe
-
- org.apache.sling.pipes.internal.slingquery.AbstractSlingQueryPipe
-
- org.apache.sling.pipes.internal.slingquery.AbstractExpressionSlingQueryPipe
-
- org.apache.sling.pipes.internal.slingquery.ChildrenPipe
-
- All Implemented Interfaces:
Pipe
public class ChildrenPipe extends AbstractExpressionSlingQueryPipe
this pipe uses SlingQuery to filters children (filter defined in expr property) of a resource (defined in the path property)
-
-
Field Summary
Fields Modifier and Type Field Description static StringRESOURCE_TYPE-
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, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
-
-
Constructor Summary
Constructors Constructor Description ChildrenPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.AbstractExpressionSlingQueryPipe
getQuery
-
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
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChildrenPipe
public ChildrenPipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings)
-
-
Method Detail
-
getQuery
protected org.apache.sling.query.SlingQuery getQuery(org.apache.sling.api.resource.Resource resource, String expression)Description copied from class:AbstractExpressionSlingQueryPipegenerates a sling query object out of a resource and an expression- Specified by:
getQueryin classAbstractExpressionSlingQueryPipe- Parameters:
resource- input resourceexpression- pipe's expression configuration- Returns:
- SlingQuery object
-
-