public interface PageBuilder
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.
| Modifier and Type | Method and Description |
|---|---|
PageComponent |
createComponent(java.lang.String resourceType)
Convenience method to create a
PageComponent for a resource type. |
PageComponent |
createComponent(java.lang.String resourceType,
ValueMap properties)
Convenience method to create a
PageComponent for a resource type and the given properties. |
PageComponent |
createComponent(java.lang.String resourceType,
ValueMap properties,
java.lang.String nameHint)
Factory method to create a new
PageComponent. |
com.day.cq.wcm.api.Page |
createPage(java.lang.String pageRoot,
java.lang.String pageName,
java.lang.String pageTitle,
java.lang.String templatePath,
java.lang.String designPath,
java.util.List<PageComponent> components)
Create a new
Page. |
com.day.cq.wcm.api.Page |
recreatePage(java.lang.String pageRoot,
java.lang.String pageName,
java.lang.String pageTitle,
java.lang.String templatePath,
java.lang.String designPath,
java.util.List<PageComponent> components)
Recreate a
Page. |
PageComponent createComponent(java.lang.String resourceType)
PageComponent for a resource type.resourceType - The PageComponents resource typePageComponentPageComponent createComponent(java.lang.String resourceType, ValueMap properties)
PageComponent for a resource type and the given properties.resourceType - The PageComponents resource typeproperties - The PageComponents propertiesPageComponentPageComponent createComponent(java.lang.String resourceType, ValueMap properties, java.lang.String nameHint)
PageComponent.resourceType - The PageComponents resource typeproperties - The PageComponents propertiesnameHint - The name hint for the PageComponentPageComponentcom.day.cq.wcm.api.Page createPage(java.lang.String pageRoot,
java.lang.String pageName,
java.lang.String pageTitle,
java.lang.String templatePath,
java.lang.String designPath,
java.util.List<PageComponent> components)
throws com.day.cq.wcm.api.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 PageComponents that make up the page.com.day.cq.wcm.api.WCMException - exception caused while creating the page.com.day.cq.wcm.api.Page recreatePage(java.lang.String pageRoot,
java.lang.String pageName,
java.lang.String pageTitle,
java.lang.String templatePath,
java.lang.String designPath,
java.util.List<PageComponent> components)
throws com.day.cq.wcm.api.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 PageComponents that make up the page.com.day.cq.wcm.api.WCMException - exception caused while creating the page.Copyright © 2010 - 2019 Adobe. All Rights Reserved