Class RenderableDocument
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.adapter.RenderableDocument
-
- All Implemented Interfaces:
Renderable
public class RenderableDocument extends Object implements Renderable
Default implementation forRenderableinterface.This is a simple wrapper around the
RenditionServicein the context of a givenDocumentModel- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RenditionDefinition>defsprotected DocumentModeldoc
-
Constructor Summary
Constructors Constructor Description RenderableDocument(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RenditionDefinition>getAvailableRenditionDefinitions()ReturnsRenditionDefinitionthat are available on the underlying objectprotected RenditiongetRendition(RenditionDefinition def)RenditiongetRenditionByKind(String kind)Retrieve theRenditionby it's king (first match rendition is returned)RenditiongetRenditionByName(String name)Retrieve theRenditionby it's name
-
-
-
Field Detail
-
doc
protected final DocumentModel doc
-
defs
protected List<RenditionDefinition> defs
-
-
Constructor Detail
-
RenderableDocument
public RenderableDocument(DocumentModel doc)
-
-
Method Detail
-
getAvailableRenditionDefinitions
public List<RenditionDefinition> getAvailableRenditionDefinitions()
Description copied from interface:RenderableReturnsRenditionDefinitionthat are available on the underlying object- Specified by:
getAvailableRenditionDefinitionsin interfaceRenderable
-
getRenditionByName
public Rendition getRenditionByName(String name)
Description copied from interface:RenderableRetrieve theRenditionby it's name- Specified by:
getRenditionByNamein interfaceRenderable
-
getRenditionByKind
public Rendition getRenditionByKind(String kind)
Description copied from interface:RenderableRetrieve theRenditionby it's king (first match rendition is returned)- Specified by:
getRenditionByKindin interfaceRenderable
-
getRendition
protected Rendition getRendition(RenditionDefinition def)
-
-