@ProviderType
public interface PipeBuilder
| Modifier and Type | Method and Description |
|---|---|
PipeBuilder |
$(String expr)
attach a sling query find pipe to the current context
|
PipeBuilder |
auth(Object... conf)
attach an authorizable pipe to the current context
|
Pipe |
build()
builds a configured pipe.
|
Pipe |
build(String path)
builds a configured pipe.
|
PipeBuilder |
children(String expr)
attach a sling query children pipe to the current context
|
PipeBuilder |
closest(String expr)
attach a sling query closest pipe to the current context
|
PipeBuilder |
conf(Object... properties)
Building up a set of configurations for the current pipe
|
PipeBuilder |
csv(String expr)
attach a csv pipe to the current context
|
PipeBuilder |
echo(String path)
attach a base pipe to the current context
|
PipeBuilder |
expr(String value)
set an expr configuration to the current pipe in the context
|
PipeBuilder |
grep(Object... conf)
attach a filter pipe to the current context
|
PipeBuilder |
json(String expr)
attach a json pipe to the current context
|
PipeBuilder |
mkdir(String expr)
Attach a path pipe to the current context
|
PipeBuilder |
mv(String expr)
attach a move pipe to the current context
|
PipeBuilder |
name(String name)
sets a pipe name, important in case you want to reuse it in another expression
|
PipeBuilder |
not(String expr)
attach a not pipe to the current context
|
PipeBuilder |
outputs(String... keys)
add outputs passed key
|
PipeBuilder |
parent()
attach a sling query parent pipe to the current context
|
PipeBuilder |
parents(String expr)
attach a sling query parents pipe to the current context
|
PipeBuilder |
path(String value)
set a path configuration to the current pipe in the context
|
PipeBuilder |
pipe(String type)
attach a new pipe to the current context
|
PipeBuilder |
ref(String expr)
attach a reference pipe to the current context
|
PipeBuilder |
rm()
attach a rm pipe to the current context
|
ExecutionResult |
run()
builds and run configured pipe
|
ExecutionResult |
run(Map bindings)
allow execution of a pipe, with more parameter
|
org.apache.sling.event.jobs.Job |
runAsync(Map bindings)
run a pipe asynchronously
|
ExecutionResult |
runWith(Object... bindings)
allow execution of a pipe, with more parameter
|
PipeBuilder |
siblings(String expr)
attach a sling query siblings pipe to the current context
|
PipeBuilder |
traverse()
attach a traverse pipe to the current context
|
PipeBuilder |
with(Object... params)
parameterized current pipe in the context
|
PipeBuilder |
write(Object... conf)
attach a write pipe to the current context
|
PipeBuilder |
xpath(String expr)
attach a xpath pipe to the current context
|
PipeBuilder pipe(String type)
type - resource type (should be registered by the plumber)PipeBuilder mv(String expr)
expr - target of the resource to movePipeBuilder write(Object... conf) throws IllegalAccessException
conf - configuration parametersIllegalAccessException - in case it's called with bad configurationPipeBuilder grep(Object... conf) throws IllegalAccessException
conf - configuration parametersIllegalAccessException - in case it's called with bad configurationPipeBuilder auth(Object... conf) throws IllegalAccessException
conf - configuration key value pairs for authorizable (see pipe's doc)IllegalAccessException - in case it's called with bad configurationPipeBuilder xpath(String expr)
expr - xpath expressionPipeBuilder children(String expr)
expr - sling query expressionPipeBuilder siblings(String expr)
expr - sling query expressionPipeBuilder rm()
PipeBuilder csv(String expr)
expr - csv expr or URL or path in the resource treePipeBuilder json(String expr)
expr - json expr or URL or path in the resource treePipeBuilder mkdir(String expr)
expr - path to createPipeBuilder echo(String path)
path - pipe pathPipeBuilder traverse()
PipeBuilder parent()
PipeBuilder parents(String expr)
expr - expressionPipeBuilder closest(String expr)
expr - expressionPipeBuilder $(String expr)
expr - expressionPipeBuilder ref(String expr)
expr - referencePipeBuilder not(String expr)
expr - referencePipeBuilder with(Object... params) throws IllegalAccessException
params - key value pair of parametersIllegalAccessException - in case it's called with wrong # of argumentsPipeBuilder expr(String value) throws IllegalAccessException
value - expression valueIllegalAccessException - in case it's called in a bad timePipeBuilder name(String name) throws IllegalAccessException
name - to overwrite default binding name (otherwise it will be "one", "two", ...)IllegalAccessException - in case it's called before a pipe is configuredPipeBuilder path(String value) throws IllegalAccessException
value - path valueIllegalAccessException - in case it's called before a pipe is configuredPipeBuilder conf(Object... properties) throws IllegalAccessException
properties - configuration key value pairs (must be an even number of arguments)IllegalAccessException - in case it's called in a bad timePipeBuilder outputs(String... keys)
keys - properties of the outputs resource to outputPipe build() throws org.apache.sling.api.resource.PersistenceException
/var/pipesorg.apache.sling.api.resource.PersistenceException - error occuring when saving the pipe configurationPipe build(String path) throws org.apache.sling.api.resource.PersistenceException
pathpath - path under which the generated configuration should be storedorg.apache.sling.api.resource.PersistenceException - error occuring when saving the pipe configurationExecutionResult run() throws Exception
Exception - exceptions thrown by the build or the pipe execution itselfExecutionResult run(Map bindings) throws Exception
bindings - additional bindingsException - in case something goes wrong with pipe executionExecutionResult runWith(Object... bindings) throws Exception
bindings - additional bindings, should be key/value formatException - in case something goes wrong with pipe executionorg.apache.sling.event.jobs.Job runAsync(Map bindings) throws org.apache.sling.api.resource.PersistenceException
bindings - additional bindings for the execution (can be null)org.apache.sling.api.resource.PersistenceException - in case something goes wrong in the job creationCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.