Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.externalblob
Class FileSystemExternalBlobAdapter

java.lang.Object
  extended by org.nuxeo.ecm.core.api.externalblob.AbstractExternalBlobAdapter
      extended by org.nuxeo.ecm.core.api.externalblob.FileSystemExternalBlobAdapter
All Implemented Interfaces:
java.io.Serializable, ExternalBlobAdapter

public class FileSystemExternalBlobAdapter
extends AbstractExternalBlobAdapter

File system external adapter that takes the "container" property to set the absolute path of the container folder on the file system.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static java.lang.String CONTAINER_PROPERTY_NAME
           
 
Fields inherited from interface org.nuxeo.ecm.core.api.externalblob.ExternalBlobAdapter
PREFIX_SEPARATOR
 
Constructor Summary
FileSystemExternalBlobAdapter()
           
 
Method Summary
 Blob getBlob(java.lang.String uri)
          Retrieves the blob for given uri.
 java.lang.String getFileAbsolutePath(java.lang.String localPath)
           
 
Methods inherited from class org.nuxeo.ecm.core.api.externalblob.AbstractExternalBlobAdapter
getLocalName, getPrefix, getProperties, getProperty, setPrefix, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_PROPERTY_NAME

public static final java.lang.String CONTAINER_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

FileSystemExternalBlobAdapter

public FileSystemExternalBlobAdapter()
Method Detail

getFileAbsolutePath

public java.lang.String getFileAbsolutePath(java.lang.String localPath)
                                     throws PropertyException
Throws:
PropertyException

getBlob

public Blob getBlob(java.lang.String uri)
             throws PropertyException
Description copied from interface: ExternalBlobAdapter
Retrieves the blob for given uri.

Parameters:
uri - the uri describing what adapter handles the file and the needed info to retrieve it.
Returns:
the resolved blob.
Throws:
PropertyException - if the blob cannot be retrieved (if adapter cannot retrieve it or if file is not found for instance)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.