Builder for JCR content nodes. Each "node" in the syntax tree corresponds to a JCR node in the repository. A new JCR node is created only if there is no existing node for the current name.
nodeBuilder.etc { satirists("sling:Folder") { bierce(firstName: "Ambrose", lastName: "Bierce", birthDate: Calendar.instance.updated(year: 1842, month: 5, date: 24)) mencken(firstName: "H.L.", lastName: "Mencken", birthDate: Calendar.instance.updated(year: 1880, month: 8, date: 12)) other("sling:Folder", "jcr:title": "Other") } }
Constructor and description |
---|
NodeBuilder
(Session session) |
NodeBuilder
(Session session, Node rootNode) |
NodeBuilder
(Session session, String rootPath) |
Type Params | Return Type | Name and description |
---|---|---|
|
def |
createNode(def name) |
|
def |
createNode(def name, def primaryNodeTypeName) |
|
def |
createNode(def name, Map properties) |
|
def |
createNode(def name, Map properties, def primaryNodeTypeName) |
Methods inherited from class | Name |
---|---|
class AbstractContentBuilder |
nodeCompleted, setParent, setProperties |
class BuilderSupport |
invokeMethod, invokeMethod, setProperty, getProperty, getMetaClass, setMetaClass, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |