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
BlobHolderimplementation that simply wraps a detachedBlob.- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Blob>blobsprotected CalendarcreationDate
-
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 StringgetBasePath()BlobgetBlob()Returns the Blob held inside the object.List<Blob>getBlobs()Returns a list of blobs, if holder implementation supports multiple blobs.CalendargetModificationDate()Returns the held blob modification date.Map<String,Serializable>getProperties()Returns all properties as a Map.SerializablegetProperty(String name)Returns a named property.protected voidinit(List<Blob> blobs)voidsetBlob(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:BlobHolderSets a blob in the object.The underlying document must be saved by the caller.
- Specified by:
setBlobin interfaceBlobHolder- Overrides:
setBlobin classAbstractBlobHolder
-
getBlob
public Blob getBlob()
Description copied from interface:BlobHolderReturns the Blob held inside the object.
-
getBlobs
public List<Blob> getBlobs()
Description copied from interface:BlobHolderReturns a list of blobs, if holder implementation supports multiple blobs.- Specified by:
getBlobsin interfaceBlobHolder- Overrides:
getBlobsin classAbstractBlobHolder
-
getBasePath
protected String getBasePath()
- Specified by:
getBasePathin classAbstractBlobHolder
-
getModificationDate
public Calendar getModificationDate()
Description copied from interface:BlobHolderReturns the held blob modification date.
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:BlobHolderReturns a named property.
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:BlobHolderReturns all properties as a Map.
-
-