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