fr.paris.lutece.plugins.blobstore.business.filesystem
Interface IFileSystemBlobStoreDAO

All Known Implementing Classes:
FileSystemBlobStoreDAO

public interface IFileSystemBlobStoreDAO

Uses filesystem to store blobs.


Method Summary
 boolean delete(java.lang.String strKey, java.lang.String strBasePath)
          Removes the file
 void insert(BytesBlobStore blobStore, java.lang.String strBasePath)
          Inserts the blobStore
 void insert(InputStreamBlobStore blobStore, java.lang.String strBasePath)
          Inserts the InputStreamDatabaseBlobStore
 BytesBlobStore load(java.lang.String strId, java.lang.String strBasePath)
          Load the data from the table
 java.io.InputStream loadInputStream(java.lang.String strId, java.lang.String strBasePath)
          Loads the InputStreamDatabaseBlobStore
 void store(BytesBlobStore blobStore, java.lang.String strBasePath)
          Updates the file
 void storeInputStream(InputStreamBlobStore blobStore, java.lang.String strBasePath)
          Updates the file
 

Method Detail

insert

void insert(BytesBlobStore blobStore,
            java.lang.String strBasePath)
            throws java.io.IOException,
                   FileAlreadyExistsException
Inserts the blobStore

Parameters:
blobStore - blobStore
strBasePath - base directory
Throws:
java.io.IOException - ioexception
FileAlreadyExistsException - if the file already exists

insert

void insert(InputStreamBlobStore blobStore,
            java.lang.String strBasePath)
            throws FileAlreadyExistsException,
                   java.io.IOException
Inserts the InputStreamDatabaseBlobStore

Parameters:
blobStore - blobStore
strBasePath - base directory
Throws:
java.io.IOException - ioexception
FileAlreadyExistsException - if the file already exists

load

BytesBlobStore load(java.lang.String strId,
                    java.lang.String strBasePath)
                    throws java.io.IOException
Load the data from the table

Parameters:
strId - The identifier
strBasePath - base directory
Returns:
the instance of the DatabaseBlobStore
Throws:
java.io.IOException - ioexception

loadInputStream

java.io.InputStream loadInputStream(java.lang.String strId,
                                    java.lang.String strBasePath)
                                    throws java.io.IOException
Loads the InputStreamDatabaseBlobStore

Parameters:
strId - id
strBasePath - base path
Returns:
the InputStreamDatabaseBlobStore
Throws:
java.io.IOException - ioexception

store

void store(BytesBlobStore blobStore,
           java.lang.String strBasePath)
           throws java.io.IOException
Updates the file

Parameters:
blobStore - the blob
strBasePath - the base directory
Throws:
java.io.IOException - ioexception

storeInputStream

void storeInputStream(InputStreamBlobStore blobStore,
                      java.lang.String strBasePath)
                      throws java.io.IOException
Updates the file

Parameters:
blobStore - the blob
strBasePath - the base directory
Throws:
java.io.IOException - ioexception

delete

boolean delete(java.lang.String strKey,
               java.lang.String strBasePath)
               throws java.io.IOException
Removes the file

Parameters:
strKey - the key
strBasePath - the base directory
Returns:
true if the file is deleted, false otherwise
Throws:
java.io.IOException - ioexception


Copyright © 2011 Mairie de Paris. All Rights Reserved.