public interface PageBuilder
This interface can be used to create Page
s and PageComponent
s. A page is basically designed as a list
of optionally nested PageComponent
s. Use the PageBuilderFactory
service to get a PageBuilder
instance.
This interface must not be implemented by clients.
Modifier and Type | Method and Description |
---|---|
PageComponent |
createComponent(String resourceType)
Convenience method to create a
PageComponent for a resource type. |
PageComponent |
createComponent(String resourceType,
ValueMap properties)
Convenience method to create a
PageComponent for a resource type and the given properties. |
PageComponent |
createComponent(String resourceType,
ValueMap properties,
String nameHint)
Factory method to create a new
PageComponent . |
Page |
createPage(String pageRoot,
String pageName,
String pageTitle,
String templatePath,
String designPath,
List<PageComponent> components)
Create a new
Page . |
Page |
recreatePage(String pageRoot,
String pageName,
String pageTitle,
String templatePath,
String designPath,
List<PageComponent> components)
Recreate a
Page . |
PageComponent createComponent(String resourceType)
PageComponent
for a resource type.resourceType
- The PageComponent
s resource typePageComponent
PageComponent createComponent(String resourceType, ValueMap properties)
PageComponent
for a resource type and the given properties.resourceType
- The PageComponent
s resource typeproperties
- The PageComponent
s propertiesPageComponent
PageComponent createComponent(String resourceType, ValueMap properties, String nameHint)
PageComponent
.resourceType
- The PageComponent
s resource typeproperties
- The PageComponent
s propertiesnameHint
- The name hint for the PageComponent
PageComponent
Page createPage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) throws WCMException
Page
.pageRoot
- The page rootpageName
- The page namepageTitle
- The page titletemplatePath
- The path to the template to usedesignPath
- The path to the design to usecomponents
- List of optionally nested PageComponent
s that make up the page.WCMException
- exception caused while creating the page.Page recreatePage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) throws WCMException
Page
.pageRoot
- The page rootpageName
- The page namepageTitle
- The page titletemplatePath
- The path to the template to usedesignPath
- The path to the design to usecomponents
- List of optionally nested PageComponent
s that make up the page.WCMException
- exception caused while creating the page.Copyright © 2010 - 2020 Adobe. All Rights Reserved