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

All Known Implementing Classes:
FileSystemBlobStoreHome

public interface IFileSystemBlobStoreHome

The Interface IFileSystemBlobStoreHome.


Method Summary
 void create(BytesBlobStore blobStore, String strBasePath, Integer depth)
          Creation of an instance of record physical file.
 void createInputStream(InputStreamBlobStore blobStore, String strBasePath, Integer depth)
          Creation of an instance of record physical file.
 BytesBlobStore findByPrimaryKey(String strKey, String strBasePath, Integer depth)
          Returns an instance of a physical file whose identifier is specified in parameter.
 InputStream findByPrimaryKeyInputStream(String strKey, String strBasePath, Integer depth)
          Returns an instance of a physical file whose identifier is specified in parameter.
 boolean remove(String strKey, String strBasePath, Integer depth)
          Delete the physical file whose identifier is specified in parameter.
 void update(BytesBlobStore blobStore, String strBasePath, Integer depth)
          Update of physical file which is specified in parameter.
 void updateInputStream(InputStreamBlobStore blobStore, String strBasePath, Integer depth)
          Update of physical file which is specified in parameter.
 

Method Detail

create

void create(BytesBlobStore blobStore,
            String strBasePath,
            Integer depth)
            throws IOException,
                   FileAlreadyExistsException
Creation of an instance of record physical file.

Parameters:
blobStore - The instance of the physical file which contains the informations to store
strBasePath - base directory
depth - the depth
Throws:
IOException - ioe
FileAlreadyExistsException - already exists

update

void update(BytesBlobStore blobStore,
            String strBasePath,
            Integer depth)
            throws IOException
Update of physical file which is specified in parameter.

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

updateInputStream

void updateInputStream(InputStreamBlobStore blobStore,
                       String strBasePath,
                       Integer depth)
                       throws IOException
Update of physical file which is specified in parameter.

Parameters:
blobStore - The instance of the record physicalFile which contains the informations to update
strBasePath - base directory
depth - the depth
Throws:
IOException - ioe

remove

boolean remove(String strKey,
               String strBasePath,
               Integer depth)
               throws IOException
Delete the physical file whose identifier is specified in parameter.

Parameters:
strKey - The identifier of the record physical file
strBasePath - base directory
depth - the depth
Returns:
true if the file is removed, false otherwise.
Throws:
IOException - ioe

findByPrimaryKey

BytesBlobStore findByPrimaryKey(String strKey,
                                String strBasePath,
                                Integer depth)
                                throws IOException
Returns an instance of a physical file whose identifier is specified in parameter.

Parameters:
strKey - The file primary key
strBasePath - base directory
depth - the depth
Returns:
an instance of physical file
Throws:
IOException - ioe

findByPrimaryKeyInputStream

InputStream findByPrimaryKeyInputStream(String strKey,
                                        String strBasePath,
                                        Integer depth)
                                        throws IOException
Returns an instance of a physical file whose identifier is specified in parameter.

Parameters:
strKey - The file primary key
strBasePath - base directory
depth - the depth
Returns:
an instance of physical file
Throws:
IOException - ioe

createInputStream

void createInputStream(InputStreamBlobStore blobStore,
                       String strBasePath,
                       Integer depth)
                       throws FileAlreadyExistsException,
                              IOException
Creation of an instance of record physical file.

Parameters:
blobStore - The instance of the physical file which contains the inputstream to store
strBasePath - base directory
depth - the depth
Throws:
FileAlreadyExistsException - already exists
IOException - ioe


Copyright © 2014 Mairie de Paris. All Rights Reserved.