fr.paris.lutece.plugins.blobstore.business.filesystem
Class FileSystemBlobStoreHome

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.business.filesystem.FileSystemBlobStoreHome
All Implemented Interfaces:
IFileSystemBlobStoreHome

public final class FileSystemBlobStoreHome
extends Object
implements IFileSystemBlobStoreHome

FileSystemBlobStoreHome.


Field Summary
static String BEAN_SERVICE
          The Constant BEAN_SERVICE.
 
Constructor Summary
FileSystemBlobStoreHome()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final String BEAN_SERVICE
The Constant BEAN_SERVICE.

See Also:
Constant Field Values
Constructor Detail

FileSystemBlobStoreHome

public FileSystemBlobStoreHome()
Method Detail

create

public void create(BytesBlobStore blobStore,
                   String strBasePath,
                   Integer depth)
            throws IOException,
                   FileAlreadyExistsException
Description copied from interface: IFileSystemBlobStoreHome
Creation of an instance of record physical file.

Specified by:
create in interface IFileSystemBlobStoreHome
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

public void update(BytesBlobStore blobStore,
                   String strBasePath,
                   Integer depth)
            throws IOException
Description copied from interface: IFileSystemBlobStoreHome
Update of physical file which is specified in parameter.

Specified by:
update in interface IFileSystemBlobStoreHome
Parameters:
blobStore - the blob store
strBasePath - base directory
depth - the depth
Throws:
IOException - ioe

updateInputStream

public void updateInputStream(InputStreamBlobStore blobStore,
                              String strBasePath,
                              Integer depth)
                       throws IOException
Description copied from interface: IFileSystemBlobStoreHome
Update of physical file which is specified in parameter.

Specified by:
updateInputStream in interface IFileSystemBlobStoreHome
Parameters:
blobStore - The instance of the record physicalFile which contains the informations to update
strBasePath - base directory
depth - the depth
Throws:
IOException - ioe

remove

public boolean remove(String strKey,
                      String strBasePath,
                      Integer depth)
               throws IOException
Description copied from interface: IFileSystemBlobStoreHome
Delete the physical file whose identifier is specified in parameter.

Specified by:
remove in interface IFileSystemBlobStoreHome
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

public BytesBlobStore findByPrimaryKey(String strKey,
                                       String strBasePath,
                                       Integer depth)
                                throws IOException
Description copied from interface: IFileSystemBlobStoreHome
Returns an instance of a physical file whose identifier is specified in parameter.

Specified by:
findByPrimaryKey in interface IFileSystemBlobStoreHome
Parameters:
strKey - The file primary key
strBasePath - base directory
depth - the depth
Returns:
an instance of physical file
Throws:
IOException - ioe

findByPrimaryKeyInputStream

public InputStream findByPrimaryKeyInputStream(String strKey,
                                               String strBasePath,
                                               Integer depth)
                                        throws IOException
Description copied from interface: IFileSystemBlobStoreHome
Returns an instance of a physical file whose identifier is specified in parameter.

Specified by:
findByPrimaryKeyInputStream in interface IFileSystemBlobStoreHome
Parameters:
strKey - The file primary key
strBasePath - base directory
depth - the depth
Returns:
an instance of physical file
Throws:
IOException - ioe

createInputStream

public void createInputStream(InputStreamBlobStore blobStore,
                              String strBasePath,
                              Integer depth)
                       throws FileAlreadyExistsException,
                              IOException
Description copied from interface: IFileSystemBlobStoreHome
Creation of an instance of record physical file.

Specified by:
createInputStream in interface IFileSystemBlobStoreHome
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.