Class RenderableDocument
java.lang.Object
org.nuxeo.ecm.platform.rendition.adapter.RenderableDocument
- All Implemented Interfaces:
Renderable
Default implementation for
Renderable
interface.
This is a simple wrapper around the RenditionService
in the context of a given DocumentModel
- Author:
- Tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<RenditionDefinition>
protected final DocumentModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsRenditionDefinition
that are available on the underlying objectprotected Rendition
getRenditionByKind
(String kind) Retrieve theRendition
by it's king (first match rendition is returned)getRenditionByName
(String name) Retrieve theRendition
by it's name
-
Field Details
-
doc
-
defs
-
-
Constructor Details
-
RenderableDocument
-
-
Method Details
-
getAvailableRenditionDefinitions
Description copied from interface:Renderable
ReturnsRenditionDefinition
that are available on the underlying object- Specified by:
getAvailableRenditionDefinitions
in interfaceRenderable
-
getRenditionByName
Description copied from interface:Renderable
Retrieve theRendition
by it's name- Specified by:
getRenditionByName
in interfaceRenderable
-
getRenditionByKind
Description copied from interface:Renderable
Retrieve theRendition
by it's king (first match rendition is returned)- Specified by:
getRenditionByKind
in interfaceRenderable
-
getRendition
-