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

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.business.filesystem.FileSystemBlobStoreHome

public final class FileSystemBlobStoreHome
extends java.lang.Object

FileSystemBlobStoreHome


Method Summary
static void create(BytesBlobStore blobStore, java.lang.String strBasePath)
          Creation of an instance of record physical file
static void createInputStream(InputStreamBlobStore blobStore, java.lang.String strBasePath)
          Creation of an instance of record physical file
static BytesBlobStore findByPrimaryKey(java.lang.String strKey, java.lang.String strBasePath)
          Returns an instance of a physical file whose identifier is specified in parameter
static java.io.InputStream findByPrimaryKeyInputStream(java.lang.String strKey, java.lang.String strBasePath)
          Returns an instance of a physical file whose identifier is specified in parameter
static boolean remove(java.lang.String strKey, java.lang.String strBasePath)
          Delete the physical file whose identifier is specified in parameter
static void update(BytesBlobStore blobStore, java.lang.String strBasePath)
          Update of physical file which is specified in parameter
static void updateInputStream(InputStreamBlobStore blobStore, java.lang.String strBasePath)
          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
 

Method Detail

create

public static void create(BytesBlobStore blobStore,
                          java.lang.String strBasePath)
                   throws java.io.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
Throws:
FileAlreadyExistsException - already exists
java.io.IOException - ioe

update

public static void update(BytesBlobStore blobStore,
                          java.lang.String strBasePath)
                   throws java.io.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
Throws:
java.io.IOException - ioe

updateInputStream

public static void updateInputStream(InputStreamBlobStore blobStore,
                                     java.lang.String strBasePath)
                              throws java.io.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
Throws:
java.io.IOException - ioe

remove

public static boolean remove(java.lang.String strKey,
                             java.lang.String strBasePath)
                      throws java.io.IOException
Delete the physical file whose identifier is specified in parameter

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

findByPrimaryKey

public static BytesBlobStore findByPrimaryKey(java.lang.String strKey,
                                              java.lang.String strBasePath)
                                       throws java.io.IOException
Returns an instance of a physical file whose identifier is specified in parameter

Parameters:
strKey - The file primary key
strBasePath - base directory
Returns:
an instance of physical file
Throws:
java.io.IOException - ioe

findByPrimaryKeyInputStream

public static java.io.InputStream findByPrimaryKeyInputStream(java.lang.String strKey,
                                                              java.lang.String strBasePath)
                                                       throws java.io.IOException
Returns an instance of a physical file whose identifier is specified in parameter

Parameters:
strKey - The file primary key
strBasePath - base directory
Returns:
an instance of physical file
Throws:
java.io.IOException - ioe

createInputStream

public static void createInputStream(InputStreamBlobStore blobStore,
                                     java.lang.String strBasePath)
                              throws FileAlreadyExistsException,
                                     java.io.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
Throws:
java.io.IOException - ioe
FileAlreadyExistsException - already exists


Copyright © 2011 Mairie de Paris. All Rights Reserved.