Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.picture.api.adapters
Class PictureBlobHolder

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.platform.picture.api.adapters.PictureBlobHolder
All Implemented Interfaces:
BlobHolder

public class PictureBlobHolder
extends DocumentBlobHolder


Constructor Summary
PictureBlobHolder(DocumentModel doc, String path)
           
 
Method Summary
 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.
 
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.DocumentBlobHolder
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

PictureBlobHolder

public PictureBlobHolder(DocumentModel doc,
                         String path)
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

getBlobs

public 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 DocumentBlobHolder
Throws:
ClientException

getBlobs

public List<Blob> getBlobs(String... viewNames)
                    throws ClientException
Throws:
ClientException

getBlob

public Blob getBlob(String title)
             throws ClientException
Throws:
ClientException

getHash

public 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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.