|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
public class DocumentBlobHolder
BlobHolder
implementation based on a DocumentModel
and a
XPath.
Constructor Summary | |
---|---|
DocumentBlobHolder(DocumentModel doc,
java.lang.String xPath)
|
|
DocumentBlobHolder(DocumentModel doc,
java.lang.String xPath,
java.lang.String xPathFilename)
Constructor with filename property for compatibility (when filename was not stored on blob object) |
Method Summary | |
---|---|
Blob |
getBlob()
Returns the Blob held inside the object. |
java.lang.String |
getHash()
Returns a hash for the held blob. |
java.util.Calendar |
getModificationDate()
Returns the held blob modification date. |
java.util.Map<java.lang.String,java.io.Serializable> |
getProperties()
Returns all properties as a Map. |
java.io.Serializable |
getProperty(java.lang.String name)
Returns a named property. |
void |
setBlob(Blob blob)
Sets a blob in the object. |
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder |
---|
getBlobs, getFilePath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentBlobHolder(DocumentModel doc, java.lang.String xPath, java.lang.String xPathFilename)
public DocumentBlobHolder(DocumentModel doc, java.lang.String xPath)
Method Detail |
---|
public Blob getBlob() throws ClientException
BlobHolder
getBlob
in interface BlobHolder
getBlob
in class AbstractBlobHolder
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 AbstractBlobHolder
ClientException
public java.util.Calendar getModificationDate() throws ClientException
BlobHolder
getModificationDate
in interface BlobHolder
getModificationDate
in class AbstractBlobHolder
ClientException
public java.lang.String getHash() throws ClientException
BlobHolder
getHash
in interface BlobHolder
getHash
in class AbstractBlobHolder
ClientException
public java.io.Serializable getProperty(java.lang.String name) throws ClientException
BlobHolder
ClientException
public java.util.Map<java.lang.String,java.io.Serializable> getProperties()
BlobHolder
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |