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 forRenderable
interface.This is a simple wrapper around the
RenditionService
in the context of a givenDocumentModel
- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RenditionDefinition>
defs
protected DocumentModel
doc
-
Constructor Summary
Constructors Constructor Description RenderableDocument(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RenditionDefinition>
getAvailableRenditionDefinitions()
ReturnsRenditionDefinition
that are available on the underlying objectprotected Rendition
getRendition(RenditionDefinition def)
Rendition
getRenditionByKind(String kind)
Retrieve theRendition
by it's king (first match rendition is returned)Rendition
getRenditionByName(String name)
Retrieve theRendition
by 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:Renderable
ReturnsRenditionDefinition
that are available on the underlying object- Specified by:
getAvailableRenditionDefinitions
in interfaceRenderable
-
getRenditionByName
public Rendition getRenditionByName(String name)
Description copied from interface:Renderable
Retrieve theRendition
by it's name- Specified by:
getRenditionByName
in interfaceRenderable
-
getRenditionByKind
public Rendition getRenditionByKind(String kind)
Description copied from interface:Renderable
Retrieve theRendition
by it's king (first match rendition is returned)- Specified by:
getRenditionByKind
in interfaceRenderable
-
getRendition
protected Rendition getRendition(RenditionDefinition def)
-
-