Package | Description |
---|---|
info.magnolia.jcr.nodebuilder | |
info.magnolia.jcr.nodebuilder.task |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNodeOperation
Abstract implementation of NodeOperation.
|
Modifier and Type | Method and Description |
---|---|
static NodeOperation |
Ops.addNode(String name) |
static NodeOperation |
Ops.addNode(String name,
String type) |
static NodeOperation |
Ops.addProperty(String name,
String newValue)
Adds property.
|
static NodeOperation |
Ops.getNode(String name) |
static NodeOperation |
Ops.getOrAddNode(String name,
String nodeType)
Gets or adds node depending on whether it existed or not.
|
static NodeOperation |
Ops.ifTrue(boolean bool)
Executes all then() defined ops only when passed in flag is evaluated true, behaves as noop otherwise.
|
static NodeOperation |
Ops.moveNode(String nodeName,
String dest)
Moves a node, using session-scoped operation.
|
static NodeOperation |
Ops.noop()
No operation; can be useful in ternary expression, for instance.
|
static NodeOperation |
Ops.onChildNodes()
Executes then() ops on all child nodes.
|
static NodeOperation |
Ops.onChildNodes(AbstractPredicate<javax.jcr.Node> predicate)
Executes then() ops on all child nodes that are evaluated true by the predicate.
|
static NodeOperation |
Ops.renameNode(String currentName,
String newName)
Renames a node.
|
static NodeOperation |
Ops.renameProperty(String name,
String newName)
Renames a property by creating a new one and copying the value.
|
static NodeOperation |
Ops.setProperty(String name,
Object newValue)
Sets the value of an existing property, ignoring its current value.
|
NodeOperation |
NodeOperation.then(NodeOperation... childrenOps) |
NodeOperation |
AbstractNodeOperation.then(NodeOperation... childrenOps) |
Modifier and Type | Method and Description |
---|---|
static void |
NodeBuilderUtil.build(String repository,
NodeOperation... ops) |
static void |
NodeBuilderUtil.build(String repository,
String rootPath,
NodeOperation... ops) |
NodeOperation |
NodeOperation.then(NodeOperation... childrenOps) |
NodeOperation |
AbstractNodeOperation.then(NodeOperation... childrenOps) |
Constructor and Description |
---|
NodeBuilder(ErrorHandler errorHandler,
javax.jcr.Node root,
NodeOperation... childrenOps) |
NodeBuilder(javax.jcr.Node root,
NodeOperation... childrenOps) |
Constructor and Description |
---|
AbstractNodeBuilderTask(String name,
String description,
ErrorHandling errorHandling,
NodeOperation... operations) |
ModuleConfigNodeBuilderTask(String name,
String description,
ErrorHandling errorHandling,
NodeOperation... operations) |
ModuleNodeBuilderTask(String name,
String description,
ErrorHandling errorHandling,
NodeOperation... operations) |
NodeBuilderTask(String taskName,
String description,
ErrorHandling errorHandling,
String workspaceName,
NodeOperation... operations) |
NodeBuilderTask(String taskName,
String description,
ErrorHandling errorHandling,
String workspaceName,
String rootPath,
NodeOperation... operations) |
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.