public interface PageExtractionHandler
This interface provides an extension point for the page extraction process as performed with the
com.day.cq.dam.indd.process.INDDPageExtractProcess
.
Clients must implements this interface and provide as a service component in case they want to provide custom logic to create
a Page
from a Rendition
. Implementations must indicate the rendition they are supporting by implementing
getRenditionPicker()
. The extraction as per extractPage(com.day.cq.dam.api.Rendition, String, String, String, String, String)
is only performed if a rendition as per getRenditionPicker()
is found on the asset.
Available implementations can be listed using the com.day.cq.dam.indd.impl.servlet.PageExtractionHandlerListServlet
at
/libs/dam/content/indesign/extractionhandler.list.json
Clients are encouraged to extend from the provided AbstractPageExtractionHandler
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_PROPERTY_DESCRIPTION
Service property to provide a description for the implementation.
|
static java.lang.String |
SERVICE_PROPERTY_LABEL
Service property to provide a label for the implementation.
|
Modifier and Type | Method and Description |
---|---|
Page |
extractPage(Rendition extractedRendition,
java.lang.String pageRoot,
java.lang.String pageName,
java.lang.String pageTitle,
java.lang.String pageTemplate,
java.lang.String pageDesign)
|
RenditionPicker |
getRenditionPicker()
Get the rendition picker.
|
static final java.lang.String SERVICE_PROPERTY_LABEL
Currently used in the listing of com.day.cq.dam.indd.impl.servlet.PageExtractionHandlerListServlet
.
static final java.lang.String SERVICE_PROPERTY_DESCRIPTION
Currently used in the listing of com.day.cq.dam.indd.impl.servlet.PageExtractionHandlerListServlet
.
Page extractPage(Rendition extractedRendition, java.lang.String pageRoot, java.lang.String pageName, java.lang.String pageTitle, java.lang.String pageTemplate, java.lang.String pageDesign) throws PageExtractionException
Page
from the given Rendition
.
The parameters are set by the configuration of the com.day.cq.dam.indd.process.INDDPageExtractProcess
.
extractedRendition
- The renditions to extract the page from.pageRoot
- The root path for the page.pageName
- The page name.pageTitle
- The page title.pageTemplate
- The page template.pageDesign
- The designPageExtractionException
- exception caused in extracting page.RenditionPicker getRenditionPicker()
Implementations must provide a RenditionPicker
to indicate what renditions they can handle.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"