Package com.day.cq.dam.indd
Interface PageBuilder
public interface PageBuilder
The PageBuilder interface.
This interface can be used to create Pages and PageComponents. A page is basically designed as a list
of optionally nested PageComponents. Use the PageBuilderFactory service to get a PageBuilder instance.
This interface must not be implemented by clients.
- Since:
- 5.5
-
Method Summary
Modifier and TypeMethodDescriptioncreateComponent(String resourceType) Convenience method to create aPageComponentfor a resource type.createComponent(String resourceType, ValueMap properties) Convenience method to create aPageComponentfor a resource type and the given properties.createComponent(String resourceType, ValueMap properties, String nameHint) Factory method to create a newPageComponent.createPage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) Create a newPage.recreatePage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) Recreate aPage.
-
Method Details
-
createComponent
Convenience method to create aPageComponentfor a resource type.- Parameters:
resourceType- ThePageComponents resource type- Returns:
- The
PageComponent
-
createComponent
Convenience method to create aPageComponentfor a resource type and the given properties.- Parameters:
resourceType- ThePageComponents resource typeproperties- ThePageComponents properties- Returns:
- The
PageComponent
-
createComponent
Factory method to create a newPageComponent.- Parameters:
resourceType- ThePageComponents resource typeproperties- ThePageComponents propertiesnameHint- The name hint for thePageComponent- Returns:
- The
PageComponent
-
createPage
Page createPage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) throws WCMException Create a newPage.- Parameters:
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 nestedPageComponents that make up the page.- Returns:
- The new page.
- Throws:
WCMException- exception caused while creating the page.
-
recreatePage
Page recreatePage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components) throws WCMException Recreate aPage.- Parameters:
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 nestedPageComponents that make up the page.- Returns:
- The recreated page.
- Throws:
WCMException- exception caused while creating the page.
-