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()
Renderable
RenditionDefinition
that are available on the underlying objectgetAvailableRenditionDefinitions
in interface Renderable
public Rendition getRenditionByName(String name) throws RenditionException
Renderable
Rendition
by it's namegetRenditionByName
in interface Renderable
RenditionException
public Rendition getRenditionByKind(String kind) throws RenditionException
Renderable
Rendition
by it's king (first match rendition is returned)getRenditionByKind
in interface Renderable
RenditionException
Copyright © 2015 Nuxeo SA. All rights reserved.