Interface RenditionProvider
-
- All Known Implementing Classes:
AbstractLazyCachableRenditionProvider,AutomationLazyRenditionProvider,DefaultAutomationRenditionProvider,HtmlRenditionProvider,PictureRenditionProvider,RenderViewRenditionProvider,TemplateBasedRenditionProvider,ThumbnailRenditionProvider,TransmissionThreeDRenditionProvider,VideoRenditionProvider
public interface RenditionProvider
Interface to hide providers ofRendition. A provider could be converter based, template based, or Automation based- Since:
- 5.6
- Author:
- Tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetVariant(DocumentModel doc, RenditionDefinition definition)Gets the optionalRENDITION_VARIANT_PROPERTYvalue for a givenRenditionDefinition.booleanisAvailable(DocumentModel doc, RenditionDefinition definition)Test if the Rendition is available on the given DocumentModelList<Blob>render(DocumentModel doc, RenditionDefinition definition)Generate the rendition Blobs for a givenRenditionDefinition.
-
-
-
Method Detail
-
isAvailable
boolean isAvailable(DocumentModel doc, RenditionDefinition definition)
Test if the Rendition is available on the given DocumentModel
-
render
List<Blob> render(DocumentModel doc, RenditionDefinition definition)
Generate the rendition Blobs for a givenRenditionDefinition. Return is a List of Blob for bigger flexibility (typically HTML rendition with resources)- Parameters:
doc- the targetDocumentModeldefinition- theRenditionDefinitionto use- Returns:
- The list of Blobs
-
getVariant
default String getVariant(DocumentModel doc, RenditionDefinition definition)
Gets the optionalRENDITION_VARIANT_PROPERTYvalue for a givenRenditionDefinition.- Parameters:
doc- the target documentdefinition- the rendition definition to use- Returns:
- the generated
RENDITION_VARIANT_PROPERTYvalue, ornull - Since:
- 8.1
-
-