Class StoredRendition
- java.lang.Object
-
- org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
-
- org.nuxeo.ecm.platform.rendition.impl.StoredRendition
-
- All Implemented Interfaces:
Rendition
public class StoredRendition extends AbstractRendition implements Rendition
Implementation of theRendition
interface for rendition that are stored in the Repository- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
stored
-
Fields inherited from class org.nuxeo.ecm.platform.rendition.impl.AbstractRendition
definition, log
-
-
Constructor Summary
Constructors Constructor Description StoredRendition(DocumentModel stored, RenditionDefinition definition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
getBlob()
Returns the rendered Blob ornull
if none.List<Blob>
getBlobs()
Returns the rendered Blobs ornull
if none.DocumentModel
getHostDocument()
Return the Document hosting the rendition.boolean
isCompleted()
Checks if this rendition's computation has completed.boolean
isStored()
Indicates if the Rendition is stored or live-
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
getCmisName, getIcon, getKind, getLabel, getModificationDate, getName, getProviderType
-
-
-
-
Field Detail
-
stored
protected final DocumentModel stored
-
-
Constructor Detail
-
StoredRendition
public StoredRendition(DocumentModel stored, RenditionDefinition definition)
-
-
Method Detail
-
isStored
public boolean isStored()
Description copied from interface:Rendition
Indicates if the Rendition is stored or live
-
isCompleted
public boolean isCompleted()
Description copied from interface:Rendition
Checks if this rendition's computation has completed.- Specified by:
isCompleted
in interfaceRendition
-
getBlob
public Blob getBlob()
Description copied from interface:Rendition
Returns the rendered Blob ornull
if none.
-
getBlobs
public List<Blob> getBlobs()
Description copied from interface:Rendition
Returns the rendered Blobs ornull
if none.
-
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
-
-