Class LiveRendition
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
-
- org.nuxeo.ecm.platform.rendition.impl.LazyRendition
-
- org.nuxeo.ecm.platform.rendition.impl.LiveRendition
-
- All Implemented Interfaces:
Rendition
public class LiveRendition extends LazyRendition implements Rendition
Implementation of theRendition
interface that is applicable for rendition created on the fly- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
doc
-
Fields inherited from class org.nuxeo.ecm.platform.rendition.impl.LazyRendition
blobs, EMPTY_MARKER, ERROR_MARKER, IN_PROGRESS_MARKER, STALE_MARKER
-
Fields inherited from class org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
definition, log
-
-
Constructor Summary
Constructors Constructor Description LiveRendition(DocumentModel doc, RenditionDefinition definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Blob>
computeRenditionBlobs()
DocumentModel
getHostDocument()
Return the Document hosting the rendition.boolean
isStored()
Indicates if the Rendition is stored or live-
Methods inherited from class org.nuxeo.ecm.platform.rendition.impl.LazyRendition
getBlob, getBlobs, isCompleted
-
Methods inherited from class org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
getCmisName, getDefinition, getIcon, getKind, getLabel, getModificationDate, getName, getProviderType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.rendition.Rendition
getBlob, getBlobs, getCmisName, getIcon, getKind, getLabel, getModificationDate, getName, getProviderType, isCompleted
-
-
-
-
Field Detail
-
doc
protected final DocumentModel doc
-
-
Constructor Detail
-
LiveRendition
public LiveRendition(DocumentModel doc, RenditionDefinition definition)
-
-
Method Detail
-
isStored
public boolean isStored()
Description copied from interface:Rendition
Indicates if the Rendition is stored or live
-
getHostDocument
public DocumentModel getHostDocument()
Description copied from interface:Rendition
Return the Document hosting the rendition.In case of a Live rendition it will be the target document and in case of stored Rendition it will be the Rendition document it self
- Specified by:
getHostDocument
in interfaceRendition
-
computeRenditionBlobs
protected List<Blob> computeRenditionBlobs()
- Specified by:
computeRenditionBlobs
in classLazyRendition
-
-