Package org.nuxeo.template.rendition
Class HtmlRenditionProvider
java.lang.Object
org.nuxeo.template.rendition.HtmlRenditionProvider
- All Implemented Interfaces:
RenditionProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAvailable
(DocumentModel doc, RenditionDefinition def) Test if the Rendition is available on the given DocumentModelrender
(DocumentModel doc, RenditionDefinition definition) Generate the rendition Blobs for a givenRenditionDefinition
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.rendition.extension.RenditionProvider
getVariant
-
Constructor Details
-
HtmlRenditionProvider
public HtmlRenditionProvider()
-
-
Method Details
-
isAvailable
Description copied from interface:RenditionProvider
Test if the Rendition is available on the given DocumentModel- Specified by:
isAvailable
in interfaceRenditionProvider
-
render
Description copied from interface:RenditionProvider
Generate the rendition Blobs for a givenRenditionDefinition
. Return is a List of Blob for bigger flexibility (typically HTML rendition with resources)- Specified by:
render
in interfaceRenditionProvider
- Parameters:
doc
- the targetDocumentModel
definition
- theRenditionDefinition
to use- Returns:
- The list of Blobs
-