public class PictureBlobHolder extends DocumentBlobHolder
Constructor and Description |
---|
PictureBlobHolder(DocumentModel doc,
String path) |
Modifier and Type | Method and Description |
---|---|
Blob |
getBlob()
Returns the Blob held inside the object.
|
Blob |
getBlob(String title) |
List<Blob> |
getBlobs()
Returns a list of blobs, if holder implementation supports multiple
blobs.
|
List<Blob> |
getBlobs(String... viewNames) |
String |
getHash()
Returns a hash for the held blob.
|
void |
setBlob(Blob blob)
Sets a blob in the object.
|
getModificationDate, getProperties, getProperty
getFilePath
public PictureBlobHolder(DocumentModel doc, String path)
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
public List<Blob> getBlobs() throws ClientException
BlobHolder
getBlobs
in interface BlobHolder
getBlobs
in class DocumentBlobHolder
ClientException
public List<Blob> getBlobs(String... viewNames) throws ClientException
ClientException
public Blob getBlob(String title) throws ClientException
ClientException
public String getHash() throws ClientException
BlobHolder
getHash
in interface BlobHolder
getHash
in class DocumentBlobHolder
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.