Class FileSystemBlobStoreDAO

java.lang.Object
fr.paris.lutece.plugins.blobstore.business.filesystem.FileSystemBlobStoreDAO
All Implemented Interfaces:
fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO

public class FileSystemBlobStoreDAO extends Object implements fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
Uses filesystem to store blob. Note that strBasePath is the path were blobs are put.
  • Constructor Details

    • FileSystemBlobStoreDAO

      public FileSystemBlobStoreDAO()
  • Method Details

    • delete

      public boolean delete(String strKey, String strBasePath, Integer depth) throws IOException
      Specified by:
      delete in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException
    • insert

      public void insert(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException, fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException
      Specified by:
      insert in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException
      fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException
    • insert

      public void insert(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException, IOException
      Specified by:
      insert in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      fr.paris.lutece.plugins.blobstore.business.filesystem.FileAlreadyExistsException
      IOException
    • load

      public fr.paris.lutece.plugins.blobstore.business.BytesBlobStore load(String strId, String strBasePath, Integer depth) throws IOException
      Specified by:
      load in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException
    • loadInputStream

      public InputStream loadInputStream(String strId, String strBasePath, Integer depth) throws IOException
      Specified by:
      loadInputStream in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException
    • store

      public void store(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException
      Specified by:
      store in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException
    • storeInputStream

      public void storeInputStream(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws IOException
      Specified by:
      storeInputStream in interface fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO
      Throws:
      IOException