Class SimpleBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
-
- All Implemented Interfaces:
BlobHolder
- Direct Known Subclasses:
ScanFileBlobHolder
,SimpleBlobHolderWithProperties
,SimpleCachableBlobHolder
public class SimpleBlobHolder extends AbstractBlobHolder
BlobHolder
implementation that simply wraps a detachedBlob
.- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Blob>
blobs
protected Calendar
creationDate
-
Constructor Summary
Constructors Constructor Description SimpleBlobHolder()
SimpleBlobHolder(List<Blob> blobs)
SimpleBlobHolder(Blob blob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
void
setBlob(Blob blob)
Sets a blob in the object.-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5Digest
-
-
-
-
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
- Overrides:
setBlob
in classAbstractBlobHolder
-
getBlob
public Blob getBlob()
Description copied from interface:BlobHolder
Returns the Blob held inside the object.
-
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
- Overrides:
getBlobs
in classAbstractBlobHolder
-
getBasePath
protected String getBasePath()
- Specified by:
getBasePath
in classAbstractBlobHolder
-
getModificationDate
public Calendar getModificationDate()
Description copied from interface:BlobHolder
Returns the held blob modification date.
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:BlobHolder
Returns a named property.
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:BlobHolder
Returns all properties as a Map.
-
-