public class DocumentBlobHolder extends AbstractBlobHolder
BlobHolder implementation based on a DocumentModel and a
XPath.| Constructor and Description |
|---|
DocumentBlobHolder(DocumentModel doc,
String xPath) |
DocumentBlobHolder(DocumentModel doc,
String xPath,
String xPathFilename)
Constructor with filename property for compatibility (when filename was
not stored on blob object)
|
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBlob()
Returns the Blob held inside the object.
|
List<Blob> |
getBlobs()
Returns a list of blobs, if holder implementation supports multiple
blobs.
|
String |
getHash()
Returns a hash for the held blob.
|
Calendar |
getModificationDate()
Returns the held blob modification date.
|
Map<String,Serializable> |
getProperties()
Returns all properties as a Map.
|
Serializable |
getProperty(String name)
Returns a named property.
|
void |
setBlob(Blob blob)
Sets a blob in the object.
|
getFilePathpublic DocumentBlobHolder(DocumentModel doc, String xPath, String xPathFilename)
public DocumentBlobHolder(DocumentModel doc, String xPath)
public Blob getBlob() throws ClientException
BlobHoldergetBlob in interface BlobHoldergetBlob in class AbstractBlobHolderClientExceptionpublic void setBlob(Blob blob) throws ClientException
BlobHolderThe underlying document must be saved by the caller.
setBlob in interface BlobHoldersetBlob in class AbstractBlobHolderClientExceptionpublic Calendar getModificationDate() throws ClientException
BlobHoldergetModificationDate in interface BlobHoldergetModificationDate in class AbstractBlobHolderClientExceptionpublic String getHash() throws ClientException
BlobHoldergetHash in interface BlobHoldergetHash in class AbstractBlobHolderClientExceptionpublic Serializable getProperty(String name) throws ClientException
BlobHolderClientExceptionpublic Map<String,Serializable> getProperties()
BlobHolderpublic List<Blob> getBlobs() throws ClientException
BlobHoldergetBlobs in interface BlobHoldergetBlobs in class AbstractBlobHolderClientExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.