Nuxeo Enterprise Platform 5.4

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(java.util.List<Blob> blobs)
           
 
Method Summary
 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.util.Calendar getModificationDate()
          Returns the held blob modification date.
 java.util.Map<java.lang.String,java.io.Serializable> getProperties()
          Returns all properties as a Map.
 java.io.Serializable getProperty(java.lang.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(java.util.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 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
Overrides:
getBlobs in class AbstractBlobHolder
Throws:
ClientException

getModificationDate

public java.util.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 java.io.Serializable getProperty(java.lang.String name)
                                 throws ClientException
Description copied from interface: BlobHolder
Returns a named property.

Throws:
ClientException

getProperties

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


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.