Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.blobholder
Class DocumentStringBlobHolder

java.lang.Object
  extended by org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
      extended by org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
          extended by org.nuxeo.ecm.core.api.blobholder.DocumentStringBlobHolder
All Implemented Interfaces:
BlobHolder

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).

Author:
tiry

Constructor Summary
DocumentStringBlobHolder(DocumentModel doc, String path)
           
DocumentStringBlobHolder(DocumentModel doc, String path, String mime_type)
           
 
Method Summary
 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
getBlobs, getHash, getModificationDate, getProperties, getProperty
 
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()
             throws ClientException
Description copied from interface: BlobHolder
Returns the Blob held inside the object.

Specified by:
getBlob in interface BlobHolder
Overrides:
getBlob in class DocumentBlobHolder
Throws:
ClientException

setBlob

public void setBlob(Blob blob)
             throws ClientException
Description copied from interface: BlobHolder
Sets a blob in the object.

The underlying document must be saved by the caller.

Specified by:
setBlob in interface BlobHolder
Overrides:
setBlob in class DocumentBlobHolder
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.