|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jcr.nodebuilder.Ops
public abstract class Ops
Factory methods for most common NodeOperation implementations.
Constructor Summary | |
---|---|
Ops()
|
Method Summary | |
---|---|
static NodeOperation |
addNode(String name)
|
static NodeOperation |
addNode(String name,
String type)
|
static NodeOperation |
addProperty(String name,
String newValue)
Adds property. |
static NodeOperation |
getNode(String name)
|
static NodeOperation |
moveNode(String nodeName,
String dest)
Moves a node, using session-scoped operation. |
static NodeOperation |
noop()
No operation; can be useful in ternary expression, for instance. |
static NodeOperation |
renameNode(String currentName,
String newName)
Renames a node. |
static NodeOperation |
renameProperty(String name,
String newName)
Renames a property by creating a new one and copying the value. |
static NodeOperation |
setProperty(String name,
Object newValue)
Sets the value of an existing property, ignoring its current value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ops()
Method Detail |
---|
public static NodeOperation addNode(String name)
public static NodeOperation addNode(String name, String type)
public static NodeOperation getNode(String name)
public static NodeOperation addProperty(String name, String newValue)
public static NodeOperation setProperty(String name, Object newValue)
javax.jcr.ItemNotFoundException
- if the property does not exist.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 noop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |