public class RenderableDocument extends Object implements Renderable
Renderable interface.
This is a simple wrapper around the RenditionService in the context
of a given DocumentModel
| Constructor and Description |
|---|
RenderableDocument(DocumentModel doc) |
| Modifier and Type | Method and Description |
|---|---|
List<RenditionDefinition> |
getAvailableRenditionDefinitions()
Returns
RenditionDefinition that are available on the underlying
object |
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 |
public RenderableDocument(DocumentModel doc)
public List<RenditionDefinition> getAvailableRenditionDefinitions()
RenderableRenditionDefinition that are available on the underlying
objectgetAvailableRenditionDefinitions in interface Renderablepublic Rendition getRenditionByName(String name) throws RenditionException
RenderableRendition by it's namegetRenditionByName in interface RenderableRenditionExceptionpublic Rendition getRenditionByKind(String kind) throws RenditionException
RenderableRendition by it's king (first match rendition is
returned)getRenditionByKind in interface RenderableRenditionExceptionCopyright © 2014 Nuxeo SA. All rights reserved.