Package org.apache.sling.pipes.models
Class PipeModel
- java.lang.Object
-
- org.apache.sling.pipes.models.PipeModel
-
@Model(adaptables=org.apache.sling.api.resource.Resource.class) public class PipeModel extends Object
Check for pipes presence underpipesnode of the given resource, and make their output available as pipes to the script. Note that current resource is passed as a binding to the executed pipes, as a map of properties, plus the name and path, with the nameBINDING_CURRENTRESOURCE
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringBINDING_CURRENTRESOURCEname of the binding in which we should register current resource bindingsprotected org.apache.sling.api.resource.ResourcecurrentResourcecurrent resourceprotected static StringNN_PIPESname of the child nodes under which we should look for pipesprotected Map<String,Iterator<org.apache.sling.api.resource.Resource>>outputsmap of the found pipes outputsprotected Plumberplumberprotected org.apache.sling.api.resource.Resourcerootpipe root of the current resource
-
Constructor Summary
Constructors Constructor Description PipeModel(org.apache.sling.api.resource.Resource resource)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Iterator<org.apache.sling.api.resource.Resource>>getOutputs()Getter for outputsprotected voidinit()
-
-
-
Field Detail
-
NN_PIPES
protected static final String NN_PIPES
name of the child nodes under which we should look for pipes- See Also:
- Constant Field Values
-
BINDING_CURRENTRESOURCE
protected static final String BINDING_CURRENTRESOURCE
name of the binding in which we should register current resource bindings- See Also:
- Constant Field Values
-
outputs
protected Map<String,Iterator<org.apache.sling.api.resource.Resource>> outputs
map of the found pipes outputs
-
plumber
protected Plumber plumber
-
root
protected org.apache.sling.api.resource.Resource root
pipe root of the current resource
-
currentResource
protected org.apache.sling.api.resource.Resource currentResource
current resource
-
-
Method Detail
-
getOutputs
public Map<String,Iterator<org.apache.sling.api.resource.Resource>> getOutputs()
Getter for outputs- Returns:
- outputs of the model: pipe name as key, outputs as value
-
init
@PostConstruct protected void init()
-
-