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, getXpath
getFilePath, getMD5Digest
public DocumentStringBlobHolder(DocumentModel doc, String path)
public DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
public Blob getBlob()
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class DocumentBlobHolder
public void setBlob(Blob blob)
BlobHolder
The underlying document must be saved by the caller.
setBlob
in interface BlobHolder
setBlob
in class DocumentBlobHolder
Copyright © 2018 Nuxeo. All rights reserved.