org.nuxeo.ecm.platform.picture.api.adapters
Class PictureBlobHolder
java.lang.Object
org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
org.nuxeo.ecm.platform.picture.api.adapters.PictureBlobHolder
- All Implemented Interfaces:
- BlobHolder
public class PictureBlobHolder
- extends DocumentBlobHolder
Method Summary |
Blob |
getBlob()
Returns the Blob held inside the object. |
Blob |
getBlob(java.lang.String title)
|
java.util.List<Blob> |
getBlobs()
Returns a list of blobs, if holder implementation supports multiple
blobs. |
java.util.List<Blob> |
getBlobs(java.lang.String... viewNames)
|
java.lang.String |
getHash()
Returns a hash for the held blob. |
void |
setBlob(Blob blob)
Sets a blob in the object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictureBlobHolder
public PictureBlobHolder(DocumentModel doc,
java.lang.String path)
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
getBlobs
public java.util.List<Blob> getBlobs()
throws ClientException
- Description copied from interface:
BlobHolder
- Returns a list of blobs, if holder implementation supports multiple
blobs.
- Specified by:
getBlobs
in interface BlobHolder
- Overrides:
getBlobs
in class AbstractBlobHolder
- Throws:
ClientException
getBlobs
public java.util.List<Blob> getBlobs(java.lang.String... viewNames)
throws ClientException
- Throws:
ClientException
getBlob
public Blob getBlob(java.lang.String title)
throws ClientException
- Throws:
ClientException
getHash
public java.lang.String getHash()
throws ClientException
- Description copied from interface:
BlobHolder
- Returns a hash for the held blob.
- Specified by:
getHash
in interface BlobHolder
- Overrides:
getHash
in class DocumentBlobHolder
- Throws:
ClientException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.