public class SimpleBlobHolder extends AbstractBlobHolder
BlobHolder
implementation that simply wraps a detached Blob
.Modifier and Type | Field and Description |
---|---|
protected List<Blob> |
blobs |
protected Calendar |
creationDate |
Constructor and Description |
---|
SimpleBlobHolder() |
SimpleBlobHolder(Blob blob) |
SimpleBlobHolder(List<Blob> blobs) |
Modifier and Type | Method and Description |
---|---|
protected String |
getBasePath() |
Blob |
getBlob()
Returns the Blob held inside the object.
|
List<Blob> |
getBlobs()
Returns a list of blobs, if holder implementation supports multiple blobs.
|
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.
|
protected void |
init(List<Blob> blobs) |
getFilePath, getHash, getMD5Digest, setBlob
protected Calendar creationDate
public SimpleBlobHolder()
public SimpleBlobHolder(List<Blob> blobs)
public SimpleBlobHolder(Blob blob)
public Blob getBlob()
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class AbstractBlobHolder
public List<Blob> getBlobs()
BlobHolder
getBlobs
in interface BlobHolder
getBlobs
in class AbstractBlobHolder
protected String getBasePath()
getBasePath
in class AbstractBlobHolder
public Calendar getModificationDate()
BlobHolder
getModificationDate
in interface BlobHolder
getModificationDate
in class AbstractBlobHolder
public Serializable getProperty(String name)
BlobHolder
public Map<String,Serializable> getProperties()
BlobHolder
Copyright © 2016 Nuxeo SA. All rights reserved.