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
BlobHolder
implementation that simply wraps a detached Blob
.- Author:
- tiry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getBlob()
Returns the Blob held inside the object.getBlobs()
Returns a list of blobs, if holder implementation supports multiple blobs.Returns the held blob modification date.Returns all properties as a Map.getProperty
(String name) Returns a named property.protected void
void
Sets a blob in the object.Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5Digest
-
Field Details
-
blobs
-
creationDate
-
-
Constructor Details
-
SimpleBlobHolder
public SimpleBlobHolder() -
SimpleBlobHolder
-
SimpleBlobHolder
-
-
Method Details
-
init
-
setBlob
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
Description copied from interface:BlobHolder
Returns the Blob held inside the object. -
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
- Specified by:
getBasePath
in classAbstractBlobHolder
-
getModificationDate
Description copied from interface:BlobHolder
Returns the held blob modification date. -
getProperty
Description copied from interface:BlobHolder
Returns a named property. -
getProperties
Description copied from interface:BlobHolder
Returns all properties as a Map.
-