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


public interface IFileSystemBlobStoreDAO

Uses filesystem to store blobs.


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

Method Detail

insert

void insert(BytesBlobStore blobStore,
            String strBasePath,
            Integer depth)
            throws IOException,
                   FileAlreadyExistsException
Inserts the blobStore.

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

insert

void insert(InputStreamBlobStore blobStore,
            String strBasePath,
            Integer depth)
            throws FileAlreadyExistsException,
                   IOException
Inserts the InputStreamDatabaseBlobStore.

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

load

BytesBlobStore load(String strId,
                    String strBasePath,
                    Integer depth)
                    throws IOException
Load the data from the table.

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

loadInputStream

InputStream loadInputStream(String strId,
                            String strBasePath,
                            Integer depth)
                            throws IOException
Loads the InputStreamDatabaseBlobStore.

Parameters:
strId - id
strBasePath - base path
depth - the depth
Returns:
the InputStreamDatabaseBlobStore
Throws:
IOException - ioexception

store

void store(BytesBlobStore blobStore,
           String strBasePath,
           Integer depth)
           throws IOException
Updates the file.

Parameters:
blobStore - the blob
strBasePath - the base directory
depth - the depth
Throws:
IOException - ioexception

storeInputStream

void storeInputStream(InputStreamBlobStore blobStore,
                      String strBasePath,
                      Integer depth)
                      throws IOException
Updates the file.

Parameters:
blobStore - the blob
strBasePath - the base directory
depth - the depth
Throws:
IOException - ioexception

delete

boolean delete(String strKey,
               String strBasePath,
               Integer depth)
               throws IOException
Removes the file.

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.