Class DocumentStringBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
-
- org.nuxeo.ecm.core.api.blobholder.DocumentStringBlobHolder
-
- All Implemented Interfaces:
BlobHolder
public class DocumentStringBlobHolder extends DocumentBlobHolder
BlobHolder
implemention based on aDocumentModel
and a Xpath pointing to a String fields. (Typical use case is the Note DocType).- Author:
- tiry
-
-
Constructor Summary
Constructors Constructor Description DocumentStringBlobHolder(DocumentModel doc, String path)
DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
getBlob()
Returns the Blob held inside the object.void
setBlob(Blob blob)
Sets a blob in the object.-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
asDirectBlobHolder, computeBlobList, getBasePath, getBlobs, getDocument, getFullXPath, getHash, getModificationDate, getProperties, getProperty, getXpath
-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getMD5Digest
-
-
-
-
Field Detail
-
mt
protected String mt
-
-
Constructor Detail
-
DocumentStringBlobHolder
public DocumentStringBlobHolder(DocumentModel doc, String path)
-
DocumentStringBlobHolder
public DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
-
-
Method Detail
-
getBlob
public Blob getBlob()
Description copied from interface:BlobHolder
Returns the Blob held inside the object.- Specified by:
getBlob
in interfaceBlobHolder
- Overrides:
getBlob
in classDocumentBlobHolder
-
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 classDocumentBlobHolder
-
-