Package com.day.cq.dam.indd
Interface PageBuilder
-
public interface PageBuilderThe PageBuilder interface.This interface can be used to create
Pages andPageComponents. A page is basically designed as a list of optionally nestedPageComponents. Use thePageBuilderFactoryservice to get aPageBuilderinstance.This interface must not be implemented by clients.
- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageComponentcreateComponent(String resourceType)Convenience method to create aPageComponentfor a resource type.PageComponentcreateComponent(String resourceType, ValueMap properties)Convenience method to create aPageComponentfor a resource type and the given properties.PageComponentcreateComponent(String resourceType, ValueMap properties, String nameHint)Factory method to create a newPageComponent.PagecreatePage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components)Create a newPage.PagerecreatePage(String pageRoot, String pageName, String pageTitle, String templatePath, String designPath, List<PageComponent> components)Recreate aPage.
-
-
-
Method Detail
-
createComponent
PageComponent createComponent(String resourceType)
Convenience method to create aPageComponentfor a resource type.- Parameters:
resourceType- ThePageComponents resource type- Returns:
- The
PageComponent
-
createComponent
PageComponent createComponent(String resourceType, ValueMap properties)
Convenience method to create aPageComponentfor a resource type and the given properties.- Parameters:
resourceType- ThePageComponents resource typeproperties- ThePageComponents properties- Returns:
- The
PageComponent
-
createComponent
PageComponent createComponent(String resourceType, ValueMap properties, String nameHint)
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.
-
-