Class ThumbnailRenditionProvider
- java.lang.Object
-
- org.nuxeo.ecm.platform.thumbnail.rendition.ThumbnailRenditionProvider
-
- All Implemented Interfaces:
RenditionProvider
public class ThumbnailRenditionProvider extends Object implements RenditionProvider
- Since:
- 7.2
-
-
Constructor Summary
Constructors Constructor Description ThumbnailRenditionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAvailable(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
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.rendition.extension.RenditionProvider
getVariant
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable(DocumentModel doc, RenditionDefinition definition)
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
-
-