public abstract class AbstractBlobHolder extends Object implements BlobHolder
BlobHolder
implementersConstructor and Description |
---|
AbstractBlobHolder() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getBasePath() |
abstract Blob |
getBlob()
Returns the Blob held inside the object.
|
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() |
abstract Calendar |
getModificationDate()
Returns the held blob modification date.
|
void |
setBlob(Blob blob)
Sets a blob in the object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperties, getProperty
public AbstractBlobHolder()
public abstract Blob getBlob()
BlobHolder
getBlob
in interface BlobHolder
public void setBlob(Blob blob)
BlobHolder
The underlying document must be saved by the caller.
setBlob
in interface BlobHolder
public List<Blob> getBlobs()
BlobHolder
getBlobs
in interface BlobHolder
protected abstract String getBasePath()
public String getFilePath()
BlobHolder
getFilePath
in interface BlobHolder
public String getHash()
BlobHolder
getHash
in interface BlobHolder
protected String getMD5Digest()
public abstract Calendar getModificationDate()
BlobHolder
getModificationDate
in interface BlobHolder
Copyright © 2016 Nuxeo SA. All rights reserved.