Class DefaultAutomationRenditionProvider
java.lang.Object
org.nuxeo.ecm.platform.rendition.extension.DefaultAutomationRenditionProvider
- All Implemented Interfaces:
RenditionProvider
- Direct Known Subclasses:
AbstractLazyCachableRenditionProvider
,PdfAutomationRenditionProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetVariant
(DocumentModel doc, RenditionDefinition definition) Gets the optionalRENDITION_VARIANT_PROPERTY
value for a givenRenditionDefinition
.boolean
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
.
-
Field Details
-
VARIANT_POLICY_USER
- See Also:
-
-
Constructor Details
-
DefaultAutomationRenditionProvider
public DefaultAutomationRenditionProvider()
-
-
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
-
getVariant
Gets the optionalRENDITION_VARIANT_PROPERTY
value for a givenRenditionDefinition
.- Specified by:
getVariant
in interfaceRenditionProvider
- Parameters:
doc
- the target documentdefinition
- the rendition definition to use- Returns:
- the generated
RENDITION_VARIANT_PROPERTY
value, ornull
- Since:
- 8.1
-