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 theRenditioninterface for rendition that are stored in the Repository- Author:
- Tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModelstored-
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 BlobgetBlob()Returns the rendered Blob ornullif none.List<Blob>getBlobs()Returns the rendered Blobs ornullif none.DocumentModelgetHostDocument()Return the Document hosting the rendition.booleanisCompleted()Checks if this rendition's computation has completed.booleanisStored()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:RenditionIndicates if the Rendition is stored or live
-
isCompleted
public boolean isCompleted()
Description copied from interface:RenditionChecks if this rendition's computation has completed.- Specified by:
isCompletedin interfaceRendition
-
getBlob
public Blob getBlob()
Description copied from interface:RenditionReturns the rendered Blob ornullif none.
-
getBlobs
public List<Blob> getBlobs()
Description copied from interface:RenditionReturns the rendered Blobs ornullif none.
-
getHostDocument
public DocumentModel getHostDocument()
Description copied from interface:RenditionReturn 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:
getHostDocumentin interfaceRendition
-
-