Class FileSystemBlobStoreDAO

  • All Implemented Interfaces:
    fr.paris.lutece.plugins.blobstore.business.filesystem.IFileSystemBlobStoreDAO

    public class FileSystemBlobStoreDAO
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(java.lang.String strKey, java.lang.String strBasePath, java.lang.Integer depth)  
      void insert​(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)  
      void insert​(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)  
      fr.paris.lutece.plugins.blobstore.business.BytesBlobStore load​(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth)  
      java.io.InputStream loadInputStream​(java.lang.String strId, java.lang.String strBasePath, java.lang.Integer depth)  
      void store​(fr.paris.lutece.plugins.blobstore.business.BytesBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)  
      void storeInputStream​(fr.paris.lutece.plugins.blobstore.business.InputStreamBlobStore blobStore, java.lang.String strBasePath, java.lang.Integer depth)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSystemBlobStoreDAO

        public FileSystemBlobStoreDAO()
    • Method Detail

      • delete

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

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

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

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

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

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

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