public class StoredRendition extends AbstractRendition implements Rendition
Rendition
interface for rendition that are stored in the RepositoryConstructor and Description |
---|
StoredRendition(DocumentModel stored,
RenditionDefinition definition) |
Modifier and Type | Method and Description |
---|---|
Blob |
getBlob()
Returns rendered Blob
|
List<Blob> |
getBlobs()
Returns rendered Blobs
|
DocumentModel |
getHostDocument()
Return the Document hosting the rendition.
|
boolean |
isStored()
Indicates if the Rendition is stored or live
|
getIcon, getKind, getLabel, getModificationDate, getName, getProviderType
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIcon, getKind, getLabel, getModificationDate, getName, getProviderType
public StoredRendition(DocumentModel stored, RenditionDefinition definition)
public boolean isStored()
Rendition
public Blob getBlob() throws RenditionException
Rendition
getBlob
in interface Rendition
RenditionException
public List<Blob> getBlobs() throws RenditionException
Rendition
getBlobs
in interface Rendition
RenditionException
public DocumentModel getHostDocument()
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
getHostDocument
in interface Rendition
Copyright © 2015 Nuxeo SA. All rights reserved.