Class DefaultAutomationRenditionProvider
java.lang.Object
org.nuxeo.ecm.platform.rendition.extension.DefaultAutomationRenditionProvider
- All Implemented Interfaces:
RenditionProvider
- Direct Known Subclasses:
AbstractLazyCachableRenditionProvider,PdfAutomationRenditionProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVariant(DocumentModel doc, RenditionDefinition definition) Gets the optionalRENDITION_VARIANT_PROPERTYvalue for a givenRenditionDefinition.booleanisAvailable(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:RenditionProviderTest if the Rendition is available on the given DocumentModel- Specified by:
isAvailablein interfaceRenditionProvider
-
render
Description copied from interface:RenditionProviderGenerate the rendition Blobs for a givenRenditionDefinition. Return is a List of Blob for bigger flexibility (typically HTML rendition with resources)- Specified by:
renderin interfaceRenditionProvider- Parameters:
doc- the targetDocumentModeldefinition- theRenditionDefinitionto use- Returns:
- The list of Blobs
-
getVariant
Gets the optionalRENDITION_VARIANT_PROPERTYvalue for a givenRenditionDefinition.- Specified by:
getVariantin interfaceRenditionProvider- Parameters:
doc- the target documentdefinition- the rendition definition to use- Returns:
- the generated
RENDITION_VARIANT_PROPERTYvalue, ornull - Since:
- 8.1
-