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).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.
|
getBlobs, getHash, getModificationDate, getProperties, getProperty
getFilePath
public DocumentStringBlobHolder(DocumentModel doc, String path)
public DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
public Blob getBlob() throws ClientException
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class DocumentBlobHolder
ClientException
public void setBlob(Blob blob) throws ClientException
BlobHolder
The underlying document must be saved by the caller.
setBlob
in interface BlobHolder
setBlob
in class DocumentBlobHolder
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.