Class DefaultAutomationRenditionProvider
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.extension.DefaultAutomationRenditionProvider
-
- All Implemented Interfaces:
RenditionProvider
- Direct Known Subclasses:
AbstractLazyCachableRenditionProvider
,PdfAutomationRenditionProvider
public class DefaultAutomationRenditionProvider extends Object implements RenditionProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
VARIANT_POLICY_USER
-
Constructor Summary
Constructors Constructor Description DefaultAutomationRenditionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVariant(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 DocumentModelList<Blob>
render(DocumentModel doc, RenditionDefinition definition)
Generate the rendition Blobs for a givenRenditionDefinition
.
-
-
-
Field Detail
-
VARIANT_POLICY_USER
public static final String VARIANT_POLICY_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAvailable
public boolean isAvailable(DocumentModel doc, RenditionDefinition def)
Description copied from interface:RenditionProvider
Test if the Rendition is available on the given DocumentModel- Specified by:
isAvailable
in interfaceRenditionProvider
-
render
public List<Blob> render(DocumentModel doc, RenditionDefinition definition)
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
public String getVariant(DocumentModel doc, RenditionDefinition definition)
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
-
-