Nuxeo Enterprise Platform 5.4

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 java.lang.Object
implements BlobHolder

Base class for BlobHolder implementers


Constructor Summary
AbstractBlobHolder()
           
 
Method Summary
abstract  Blob getBlob()
          Returns the Blob held inside the object.
 java.util.List<Blob> getBlobs()
          Returns a list of blobs, if holder implementation supports multiple blobs.
 java.lang.String getFilePath()
          Returns a filesystem-like path to represent the held blob.
 java.lang.String getHash()
          Returns a hash for the held blob.
abstract  java.util.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 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
Throws:
ClientException

getFilePath

public java.lang.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 java.lang.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 java.util.Calendar getModificationDate()
                                                throws ClientException
Description copied from interface: BlobHolder
Returns the held blob modification date.

Specified by:
getModificationDate in interface BlobHolder
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.