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