public class PathPipe extends BasePipe
nodeType
resource type with which the leaf node of the created path will be createdintermediateType
resource type with which intermediate nodse of the created path will be createdautosave
flag indicating wether this pipe should triggers a commit at the end of the executionModifier and Type | Field and Description |
---|---|
static String |
PN_AUTOSAVE |
static String |
PN_INTERMEDIATE |
static String |
PN_NODETYPE |
static String |
PN_RESOURCETYPE |
static String |
RESOURCE_TYPE |
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, RT_PREFIX, SLASH, STATUS_FINISHED, STATUS_STARTED
Constructor and Description |
---|
PathPipe(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() |
protected org.apache.sling.api.resource.Resource |
getOrCreateNode(String path)
get or create JCR path, using pipe members
|
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 static final String RESOURCE_TYPE
public static final String PN_RESOURCETYPE
public static final String PN_NODETYPE
public static final String PN_INTERMEDIATE
public static final String PN_AUTOSAVE
public PathPipe(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 Iterator<org.apache.sling.api.resource.Resource> computeOutput() throws Exception
computeOutput
in class BasePipe
ScriptException
- if any exception has occuredException
protected org.apache.sling.api.resource.Resource getOrCreateNode(String path) throws javax.jcr.RepositoryException
path
- path to createjavax.jcr.RepositoryException
- in case something went wrong with jcr creationCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.