public interface RenditionProvider
Rendition
. A provider could be converter based, template based, or Automation
basedModifier and Type | Method and Description |
---|---|
default String |
getVariant(DocumentModel doc,
RenditionDefinition definition)
Gets the optional
RENDITION_VARIANT_PROPERTY value for a given RenditionDefinition . |
boolean |
isAvailable(DocumentModel doc,
RenditionDefinition definition)
Test if the Rendition is available on the given DocumentModel
|
List<Blob> |
render(DocumentModel doc,
RenditionDefinition definition)
Generate the rendition Blobs for a given
RenditionDefinition . |
boolean isAvailable(DocumentModel doc, RenditionDefinition definition)
List<Blob> render(DocumentModel doc, RenditionDefinition definition)
RenditionDefinition
. Return is a List of Blob for bigger
flexibility (typically HTML rendition with resources)doc
- the target DocumentModel
definition
- the RenditionDefinition
to usedefault String getVariant(DocumentModel doc, RenditionDefinition definition)
RENDITION_VARIANT_PROPERTY
value for a given RenditionDefinition
.doc
- the target documentdefinition
- the rendition definition to useRENDITION_VARIANT_PROPERTY
value, or null
Copyright © 2018 Nuxeo. All rights reserved.