Class AbstractBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- All Implemented Interfaces:
BlobHolder
- Direct Known Subclasses:
DocumentBlobHolder
,DownloadBlobHolder
,DownloadContextBlobHolder
,SimpleBlobHolder
public abstract class AbstractBlobHolder extends Object implements BlobHolder
Base class forBlobHolder
implementers
-
-
Constructor Summary
Constructors Constructor Description AbstractBlobHolder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getBasePath()
List<Blob>
getBlobs()
Returns a list of blobs, if holder implementation supports multiple blobs.String
getFilePath()
Returns a filesystem-like path to represent the held blob.String
getHash()
Returns a hash for the held blob.protected String
getMD5Digest()
void
setBlob(Blob blob)
Sets a blob in the object.-
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.core.api.blobholder.BlobHolder
getBlob, getModificationDate, getProperties, getProperty
-
-
-
-
Method Detail
-
setBlob
public void setBlob(Blob blob)
Description copied from interface:BlobHolder
Sets a blob in the object.The underlying document must be saved by the caller.
- Specified by:
setBlob
in interfaceBlobHolder
-
getBlobs
public List<Blob> getBlobs()
Description copied from interface:BlobHolder
Returns a list of blobs, if holder implementation supports multiple blobs.- Specified by:
getBlobs
in interfaceBlobHolder
-
getBasePath
protected abstract String getBasePath()
-
getFilePath
public String getFilePath()
Description copied from interface:BlobHolder
Returns a filesystem-like path to represent the held blob.- Specified by:
getFilePath
in interfaceBlobHolder
-
getHash
public String getHash()
Description copied from interface:BlobHolder
Returns a hash for the held blob.- Specified by:
getHash
in interfaceBlobHolder
-
getMD5Digest
protected String getMD5Digest()
-
-