Builder for AEM pages. Each "node" in the syntax tree corresponds to a node,
unless the node is a descendant of a
jcr:content
node, in which case nodes are treated in the same
manner as NodeBuilder
.
pageBuilder.content {
beer {
styles("Styles") {
"jcr:content"("jcr:lastModifiedBy": "me", "jcr:lastModified": Calendar.instance) {
data("sling:Folder")
}
dubbel("Dubbel")
tripel("Tripel")
saison("Saison")
}
breweries("Breweries", "jcr:lastModifiedBy": "me", "jcr:lastModified": Calendar.instance)
}
}
jcr:content
nodes are not created with the cq:Page
type by
default and can have their own node type specified as described for the Node builder ("data").jcr:content
node first ("breweries").
Constructor and description |
---|
PageBuilder
(Session session) |
PageBuilder
(Session session, Page rootPage) |
PageBuilder
(Session session, String rootPath) |
Type Params | Return Type | Name and description |
---|---|---|
|
def |
createNode(def name) |
|
def |
createNode(def name, def title) |
|
def |
createNode(def name, Map properties) |
|
def |
createNode(def name, Map properties, def value) |
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 |