Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

public class SimpleBlobHolder
extends AbstractBlobHolder

BlobHolder implementation that simply wraps a detached Blob.

Author:
tiry

Constructor Summary
SimpleBlobHolder()
           
SimpleBlobHolder(Blob blob)
           
SimpleBlobHolder(List<Blob> blobs)
           
 
Method Summary
 Blob getBlob()
          Returns the Blob held inside the object.
 List<Blob> getBlobs()
          Returns a list of blobs, if holder implementation supports multiple blobs.
 Calendar getModificationDate()
          Returns the held blob modification date.
 Map<String,Serializable> getProperties()
          Returns all properties as a Map.
 Serializable getProperty(String name)
          Returns a named property.
 
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, setBlob
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBlobHolder

public SimpleBlobHolder()

SimpleBlobHolder

public SimpleBlobHolder(List<Blob> blobs)

SimpleBlobHolder

public SimpleBlobHolder(Blob blob)
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
Specified by:
getBlob in class AbstractBlobHolder
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 AbstractBlobHolder
Throws:
ClientException

getModificationDate

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

Specified by:
getModificationDate in interface BlobHolder
Specified by:
getModificationDate in class AbstractBlobHolder
Throws:
ClientException

getProperty

public Serializable getProperty(String name)
                         throws ClientException
Description copied from interface: BlobHolder
Returns a named property.

Throws:
ClientException

getProperties

public Map<String,Serializable> getProperties()
Description copied from interface: BlobHolder
Returns all properties as a Map.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.