Class DownloadBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- org.nuxeo.ecm.platform.rendition.adapter.DownloadBlobHolder
-
- All Implemented Interfaces:
BlobHolder
public class DownloadBlobHolder extends AbstractBlobHolder
Blob holder able to return the blob of a document default rendition.- Since:
- 9.3
- See Also:
RenditionService.getDefaultRendition(DocumentModel, String, Map)
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
doc
-
Constructor Summary
Constructors Constructor Description DownloadBlobHolder(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getBasePath()
Blob
getBlob()
Returns the Blob held inside the object.Calendar
getModificationDate()
Returns the held blob modification date.Map<String,Serializable>
getProperties()
Returns all properties as a Map.Serializable
getProperty(String name)
Returns a named property.-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getBlobs, getFilePath, getHash, getMD5Digest, setBlob
-
-
-
-
Field Detail
-
doc
protected final DocumentModel doc
-
-
Constructor Detail
-
DownloadBlobHolder
public DownloadBlobHolder(DocumentModel doc)
-
-
Method Detail
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:BlobHolder
Returns a named property.
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:BlobHolder
Returns all properties as a Map.
-
getBlob
public Blob getBlob()
Description copied from interface:BlobHolder
Returns the Blob held inside the object.- Specified by:
getBlob
in interfaceBlobHolder
- Specified by:
getBlob
in classAbstractBlobHolder
-
getBasePath
protected String getBasePath()
- Specified by:
getBasePath
in classAbstractBlobHolder
-
getModificationDate
public Calendar getModificationDate()
Description copied from interface:BlobHolder
Returns the held blob modification date.- Specified by:
getModificationDate
in interfaceBlobHolder
- Specified by:
getModificationDate
in classAbstractBlobHolder
-
-