public class DocumentStringBlobHolder extends DocumentBlobHolder
BlobHolder implemention based on a DocumentModel and a Xpath pointing to a String fields. (Typical
use case is the Note DocType).| Modifier and Type | Field and Description |
|---|---|
protected String |
mt |
blobList, doc, xPath| Constructor and Description |
|---|
DocumentStringBlobHolder(DocumentModel doc,
String path) |
DocumentStringBlobHolder(DocumentModel doc,
String path,
String mime_type) |
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBlob()
Returns the Blob held inside the object.
|
void |
setBlob(Blob blob)
Sets a blob in the object.
|
asDirectBlobHolder, computeBlobList, getBasePath, getBlobs, getDocument, getFullXPath, getHash, getModificationDate, getProperties, getProperty, getXpathgetFilePath, getMD5Digestpublic DocumentStringBlobHolder(DocumentModel doc, String path)
public DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
public Blob getBlob()
BlobHoldergetBlob in interface BlobHoldergetBlob in class DocumentBlobHolderpublic void setBlob(Blob blob)
BlobHolderThe underlying document must be saved by the caller.
setBlob in interface BlobHoldersetBlob in class DocumentBlobHolderCopyright © 2019 Nuxeo. All rights reserved.