Package | Description |
---|---|
info.magnolia.nodebuilder | |
info.magnolia.nodebuilder.task |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNodeOperation
Abstract implementation of NodeOperation.
|
class |
RecursiveOp
Visits the hierarchy recursively and executes the operations on all nodes matching the filter.
|
Modifier and Type | Method and Description |
---|---|
static NodeOperation |
Ops.addNode(String name) |
static NodeOperation |
Ops.addNode(String name,
ItemType type) |
static NodeOperation |
Ops.addNode(String name,
String type) |
static NodeOperation |
Ops.addProperty(String name,
Object value)
Adds a currently non-existing property.
|
static NodeOperation |
Ops.copyNode(String nodeName,
String dest)
Copies a node, using session-scoped operation.
|
static NodeOperation |
ContentOps.createCollectionNode(String name) |
static NodeOperation |
ContentOps.createContent(String name,
ItemType type) |
static NodeOperation |
ContentOps.createPage(String name,
String template) |
static NodeOperation |
ContentOps.createParagraph(String name,
String template) |
static NodeOperation |
Ops.getNode(String name) |
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(Content.ContentFilter filter,
NodeOperation... childrenOps)
Executes the operation for each child node matching the filter.
|
static NodeOperation |
Ops.onChildNodes(ItemType type,
NodeOperation... childrenOps)
Executes the operation for each child node of a certain type.
|
static NodeOperation |
Ops.onChildNodes(NodeOperation... childrenOps)
Executes the operation for each child node excluding meta data and jcr base node.
|
static NodeOperation |
Ops.onChildNodes(String type,
NodeOperation... childrenOps)
Executes the operation for each child node of a certain type.
|
static NodeOperation |
RecursiveOp.recursive(Content.ContentFilter filter,
NodeOperation... childrenOps) |
static NodeOperation |
RecursiveOp.recursive(ItemType type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type.
|
static NodeOperation |
RecursiveOp.recursive(NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes excluding meta data and jcr base nodes.
|
static NodeOperation |
RecursiveOp.recursive(String type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type.
|
static NodeOperation |
Ops.remove(String name)
Can remove either a node or property.
|
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 |
ContentOps.setBinaryNodeData(String name,
String fileName,
long size,
InputStream inputStream) |
static NodeOperation |
ContentOps.setNodeData(String name,
Object value) |
static NodeOperation |
Ops.setProperty(String name,
Object newValue)
Sets the value of an existing property, ignoring its current value.
|
static NodeOperation |
Ops.setProperty(String name,
Object expectedCurrentValue,
Object newValue)
Sets the value of an existing property, only if the actual current value matches the given expected current value.
|
static NodeOperation |
ContentOps.setTemplate(String template) |
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) |
static NodeOperation |
Ops.onChildNodes(Content.ContentFilter filter,
NodeOperation... childrenOps)
Executes the operation for each child node matching the filter.
|
static NodeOperation |
Ops.onChildNodes(ItemType type,
NodeOperation... childrenOps)
Executes the operation for each child node of a certain type.
|
static NodeOperation |
Ops.onChildNodes(NodeOperation... childrenOps)
Executes the operation for each child node excluding meta data and jcr base node.
|
static NodeOperation |
Ops.onChildNodes(String type,
NodeOperation... childrenOps)
Executes the operation for each child node of a certain type.
|
static NodeOperation |
RecursiveOp.recursive(Content.ContentFilter filter,
NodeOperation... childrenOps) |
static NodeOperation |
RecursiveOp.recursive(ItemType type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type.
|
static NodeOperation |
RecursiveOp.recursive(NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes excluding meta data and jcr base nodes.
|
static NodeOperation |
RecursiveOp.recursive(String type,
NodeOperation... childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching a certain type.
|
NodeOperation |
NodeOperation.then(NodeOperation... childrenOps) |
NodeOperation |
AbstractNodeOperation.then(NodeOperation... childrenOps) |
Constructor and Description |
---|
NodeBuilder(Content root,
NodeOperation... childrenOps) |
NodeBuilder(ErrorHandler errorHandler,
Content root,
NodeOperation... childrenOps) |
RecursiveOp(Content.ContentFilter filter,
NodeOperation[] childrenOps)
Visits the hierarchy recursively and executes the operations on all nodes matching the filter.
|
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-2014 Magnolia International Ltd.. All Rights Reserved.