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()
RenderableRenditionDefinition that are available on the underlying objectgetAvailableRenditionDefinitions in interface Renderablepublic Rendition getRenditionByName(String name)
RenderableRendition by it's namegetRenditionByName in interface Renderablepublic Rendition getRenditionByKind(String kind)
RenderableRendition by it's king (first match rendition is returned)getRenditionByKind in interface Renderableprotected Rendition getRendition(RenditionDefinition def)
Copyright © 2019 Nuxeo. All rights reserved.