Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
All Implemented Interfaces:
BlobHolder
Direct Known Subclasses:
DocumentBlobHolder, SimpleBlobHolder

public abstract class AbstractBlobHolder
extends Object
implements BlobHolder

Base class for BlobHolder implementers


Constructor Summary
AbstractBlobHolder()
           
 
Method Summary
abstract  Blob getBlob()
          Returns the Blob held inside the object.
 List<Blob> getBlobs()
          Returns a list of blobs, if holder implementation supports multiple blobs.
 String getFilePath()
          Returns a filesystem-like path to represent the held blob.
 String getHash()
          Returns a hash for the held blob.
abstract  Calendar getModificationDate()
          Returns the held blob modification date.
 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
 
Methods inherited from interface org.nuxeo.ecm.core.api.blobholder.BlobHolder
getProperties, getProperty
 

Constructor Detail

AbstractBlobHolder

public AbstractBlobHolder()
Method Detail

getBlob

public abstract Blob getBlob()
                      throws ClientException
Description copied from interface: BlobHolder
Returns the Blob held inside the object.

Specified by:
getBlob in interface BlobHolder
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
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
Throws:
ClientException

getFilePath

public String getFilePath()
                   throws ClientException
Description copied from interface: BlobHolder
Returns a filesystem-like path to represent the held blob.

Specified by:
getFilePath in interface BlobHolder
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
Throws:
ClientException

getModificationDate

public abstract Calendar getModificationDate()
                                      throws ClientException
Description copied from interface: BlobHolder
Returns the held blob modification date.

Specified by:
getModificationDate in interface BlobHolder
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.