public class PictureRenditionProvider extends Object implements RenditionProvider
Constructor and Description |
---|
PictureRenditionProvider() |
Modifier and Type | Method and Description |
---|---|
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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVariant
public PictureRenditionProvider()
public boolean isAvailable(DocumentModel doc, RenditionDefinition definition)
RenditionProvider
isAvailable
in interface RenditionProvider
public List<Blob> render(DocumentModel doc, RenditionDefinition definition)
RenditionProvider
RenditionDefinition
. Return is a List of Blob for bigger
flexibility (typically HTML rendition with resources)render
in interface RenditionProvider
doc
- the target DocumentModel
definition
- the RenditionDefinition
to useCopyright © 2016 Nuxeo SA. All rights reserved.