Modifier and Type | Field and Description |
---|---|
static String |
PN_ASSEMBLE |
static String |
PN_CHECKEXISTENCE |
static String |
PN_FILTERCOLLECTIONMODE |
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 |
---|
PackagePipe(Plumber plumber,
org.apache.sling.api.resource.Resource resource,
PipeBindings upperBindings)
Pipe Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
after()
to be executed before output is retrieved
|
protected Iterator<org.apache.sling.api.resource.Resource> |
computeOutput() |
protected void |
init()
computes configured package based on expression configuration (either existing or creating it)
|
boolean |
modifiesContent()
returns true if that pipe modifies content during its execution
|
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_FILTERCOLLECTIONMODE
public static final String PN_ASSEMBLE
public static final String PN_CHECKEXISTENCE
public PackagePipe(Plumber plumber, org.apache.sling.api.resource.Resource resource, PipeBindings upperBindings) throws Exception
plumber
- plumberresource
- configuration resourceupperBindings
- super pipe's bindingsException
- in case configuration is not workingpublic 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 void init() throws IOException, javax.jcr.RepositoryException, ScriptException
IOException
- problem with binaryjavax.jcr.RepositoryException
- problem with package persistenceIOException
- problem with package buildScriptException
- problem with some expression/path computeCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.