Package com.day.cq.dam.indd
Interface PageBuilder
-
public interface PageBuilder
The PageBuilder interface.This interface can be used to create
Page
s andPageComponent
s. A page is basically designed as a list of optionally nestedPageComponent
s. Use thePageBuilderFactory
service to get aPageBuilder
instance.This interface must not be implemented by clients.
- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PageComponent
createComponent(java.lang.String resourceType)
Convenience method to create aPageComponent
for a resource type.PageComponent
createComponent(java.lang.String resourceType, ValueMap properties)
Convenience method to create aPageComponent
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 newPageComponent
.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 newPage
.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 aPage
.
-
-
-
Method Detail
-
createComponent
PageComponent createComponent(java.lang.String resourceType)
Convenience method to create aPageComponent
for a resource type.- Parameters:
resourceType
- ThePageComponent
s resource type- Returns:
- The
PageComponent
-
createComponent
PageComponent createComponent(java.lang.String resourceType, ValueMap properties)
Convenience method to create aPageComponent
for a resource type and the given properties.- Parameters:
resourceType
- ThePageComponent
s resource typeproperties
- ThePageComponent
s properties- Returns:
- The
PageComponent
-
createComponent
PageComponent createComponent(java.lang.String resourceType, ValueMap properties, java.lang.String nameHint)
Factory method to create a newPageComponent
.- Parameters:
resourceType
- ThePageComponent
s resource typeproperties
- ThePageComponent
s propertiesnameHint
- The name hint for thePageComponent
- Returns:
- The
PageComponent
-
createPage
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 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 nestedPageComponent
s that make up the page.- Returns:
- The new page.
- Throws:
WCMException
- exception caused while creating the page.
-
recreatePage
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 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 nestedPageComponent
s that make up the page.- Returns:
- The recreated page.
- Throws:
WCMException
- exception caused while creating the page.
-
-