Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.convert.cache
Class SimpleCachableBlobHolder

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

public class SimpleCachableBlobHolder
extends SimpleBlobHolder
implements CachableBlobHolder

Cachable implementation of the SimpleBlobHolder.

Author:
tiry

Constructor Summary
SimpleCachableBlobHolder()
           
SimpleCachableBlobHolder(Blob blob)
           
SimpleCachableBlobHolder(List<Blob> blobs)
           
SimpleCachableBlobHolder(String path)
           
 
Method Summary
 void addDirectoryToList(File directory, String prefix)
           
 void load(String path)
          Reloads the BlobHolder from a file.
 String persist(String basePath)
          Persists the blobHolder to disk.
 
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
getBlob, getBlobs, getModificationDate, getProperties, getProperty
 
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
 
Methods inherited from interface org.nuxeo.ecm.core.api.blobholder.BlobHolder
getBlob, getBlobs, getFilePath, getHash, getModificationDate, getProperties, getProperty, setBlob
 

Constructor Detail

SimpleCachableBlobHolder

public SimpleCachableBlobHolder()

SimpleCachableBlobHolder

public SimpleCachableBlobHolder(Blob blob)

SimpleCachableBlobHolder

public SimpleCachableBlobHolder(List<Blob> blobs)

SimpleCachableBlobHolder

public SimpleCachableBlobHolder(String path)
Method Detail

load

public void load(String path)
Description copied from interface: CachableBlobHolder
Reloads the BlobHolder from a file.

Specified by:
load in interface CachableBlobHolder

addDirectoryToList

public void addDirectoryToList(File directory,
                               String prefix)
                        throws ConversionException
Throws:
ConversionException

persist

public String persist(String basePath)
               throws Exception
Description copied from interface: CachableBlobHolder
Persists the blobHolder to disk.

Specified by:
persist in interface CachableBlobHolder
Parameters:
basePath - the base path (existing directory) as determined by the caller
Returns:
the full path of the newly created FileSystem resource
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.