class PageBuilder extends AbstractContentBuilder
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").
| Modifiers | Name | Description |
|---|---|---|
private static String |
NT_PAGE_CONTENT |
| Properties inherited from class | Properties |
|---|---|
class AbstractContentBuilder |
currentNode, session |
| Constructor and description |
|---|
PageBuilder(Session session) |
PageBuilder(Session session, Page rootPage) |
PageBuilder(Session session, String rootPath) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Object |
createNode(Object name) |
|
Object |
createNode(Object name, Object title) |
|
Object |
createNode(Object name, Map properties) |
|
Object |
createNode(Object name, Map properties, Object value) |
|
private Node |
getOrAddPage(Object map) |
|
private boolean |
isContentNode(Object name) |
| Methods inherited from class | Name |
|---|---|
class AbstractContentBuilder |
nodeCompleted, setParent, setProperties |