Constructor and Description |
---|
Ops()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static NodeOperation |
addNode(String name)
Deprecated.
|
static NodeOperation |
addNode(String name,
ItemType type)
Deprecated.
|
static NodeOperation |
addNode(String name,
String type)
Deprecated.
|
static NodeOperation |
addProperty(String name,
Object value)
Deprecated.
Adds a currently non-existing property.
|
static NodeOperation |
copyNode(String nodeName,
String dest)
Deprecated.
Copies a node, using session-scoped operation.
|
static NodeOperation |
getNode(String name)
Deprecated.
|
static NodeOperation |
moveNode(String nodeName,
String dest)
Deprecated.
Moves a node, using session-scoped operation.
|
static NodeOperation |
noop()
Deprecated.
No operation; can be useful in ternary expression, for instance.
|
static NodeOperation |
onChildNodes(Content.ContentFilter filter,
NodeOperation... childrenOps)
Deprecated.
Executes the operation for each child node matching the filter.
|
static NodeOperation |
onChildNodes(ItemType type,
NodeOperation... childrenOps)
Deprecated.
Executes the operation for each child node of a certain type.
|
static NodeOperation |
onChildNodes(NodeOperation... childrenOps)
Deprecated.
Executes the operation for each child node excluding meta data and jcr base node.
|
static NodeOperation |
onChildNodes(String type,
NodeOperation... childrenOps)
Deprecated.
Executes the operation for each child node of a certain type.
|
static NodeOperation |
remove(String name)
Deprecated.
Can remove either a node or property.
|
static NodeOperation |
renameNode(String currentName,
String newName)
Deprecated.
Renames a node.
|
static NodeOperation |
renameProperty(String name,
String newName)
Deprecated.
Renames a property by creating a new one and copying the value.
|
static NodeOperation |
setProperty(String name,
Object newValue)
Deprecated.
Sets the value of an existing property, ignoring its current value.
|
static NodeOperation |
setProperty(String name,
Object expectedCurrentValue,
Object newValue)
Deprecated.
Sets the value of an existing property, only if the actual current value matches the given expected current value.
|
public static NodeOperation addNode(String name)
public static NodeOperation addNode(String name, String type)
public static NodeOperation addNode(String name, ItemType type)
public static NodeOperation getNode(String name)
public static NodeOperation remove(String name)
public static NodeOperation addProperty(String name, Object value)
public static NodeOperation setProperty(String name, Object newValue)
javax.jcr.ItemNotFoundException
- if the property does not exist.public static NodeOperation setProperty(String name, Object expectedCurrentValue, Object newValue)
javax.jcr.ItemNotFoundException
- if the property does not exist.javax.jcr.RepositoryException
- if the current value does not match the expected one.public static NodeOperation renameNode(String currentName, String newName)
public static NodeOperation renameProperty(String name, String newName)
public static NodeOperation moveNode(String nodeName, String dest)
public static NodeOperation copyNode(String nodeName, String dest)
public static NodeOperation onChildNodes(NodeOperation... childrenOps)
public static NodeOperation onChildNodes(String type, NodeOperation... childrenOps)
public static NodeOperation onChildNodes(ItemType type, NodeOperation... childrenOps)
public static NodeOperation onChildNodes(Content.ContentFilter filter, NodeOperation... childrenOps)
public static NodeOperation noop()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.