public class RenderableDocument extends Object implements Renderable
Renderable
interface.
This is a simple wrapper around the RenditionService
in the context of a given DocumentModel
Modifier and Type | Field and Description |
---|---|
protected List<RenditionDefinition> |
defs |
protected DocumentModel |
doc |
Constructor and Description |
---|
RenderableDocument(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
List<RenditionDefinition> |
getAvailableRenditionDefinitions()
Returns
RenditionDefinition that are available on the underlying object |
protected Rendition |
getRendition(RenditionDefinition def) |
Rendition |
getRenditionByKind(String kind)
Retrieve the
Rendition by it's king (first match rendition is returned) |
Rendition |
getRenditionByName(String name)
Retrieve the
Rendition by it's name |
protected final DocumentModel doc
protected List<RenditionDefinition> defs
public RenderableDocument(DocumentModel doc)
public List<RenditionDefinition> getAvailableRenditionDefinitions()
Renderable
RenditionDefinition
that are available on the underlying objectgetAvailableRenditionDefinitions
in interface Renderable
public Rendition getRenditionByName(String name)
Renderable
Rendition
by it's namegetRenditionByName
in interface Renderable
public Rendition getRenditionByKind(String kind)
Renderable
Rendition
by it's king (first match rendition is returned)getRenditionByKind
in interface Renderable
protected Rendition getRendition(RenditionDefinition def)
Copyright © 2015 Nuxeo SA. All rights reserved.