public final class FileSystemBlobStoreHome extends Object implements IFileSystemBlobStoreHome
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
Constructor and Description |
---|
FileSystemBlobStoreHome() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String BEAN_SERVICE
public void create(BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException, FileAlreadyExistsException
IFileSystemBlobStoreHome
create
in interface IFileSystemBlobStoreHome
blobStore
- The instance of the physical file which contains the
informations to storestrBasePath
- base directorydepth
- the depthIOException
- ioeFileAlreadyExistsException
- already existspublic void update(BytesBlobStore blobStore, String strBasePath, Integer depth) throws IOException
IFileSystemBlobStoreHome
update
in interface IFileSystemBlobStoreHome
blobStore
- the blob storestrBasePath
- base directorydepth
- the depthIOException
- ioepublic void updateInputStream(InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws IOException
IFileSystemBlobStoreHome
updateInputStream
in interface IFileSystemBlobStoreHome
blobStore
- The instance of the record physicalFile which contains
the informations to updatestrBasePath
- base directorydepth
- the depthIOException
- ioepublic boolean remove(String strKey, String strBasePath, Integer depth) throws IOException
IFileSystemBlobStoreHome
remove
in interface IFileSystemBlobStoreHome
strKey
- The identifier of the record physical filestrBasePath
- base directorydepth
- the depthtrue
if the file is removed, false
otherwise.IOException
- ioepublic BytesBlobStore findByPrimaryKey(String strKey, String strBasePath, Integer depth) throws IOException
IFileSystemBlobStoreHome
findByPrimaryKey
in interface IFileSystemBlobStoreHome
strKey
- The file primary keystrBasePath
- base directorydepth
- the depthIOException
- ioepublic InputStream findByPrimaryKeyInputStream(String strKey, String strBasePath, Integer depth) throws IOException
IFileSystemBlobStoreHome
findByPrimaryKeyInputStream
in interface IFileSystemBlobStoreHome
strKey
- The file primary keystrBasePath
- base directorydepth
- the depthIOException
- ioepublic void createInputStream(InputStreamBlobStore blobStore, String strBasePath, Integer depth) throws FileAlreadyExistsException, IOException
IFileSystemBlobStoreHome
createInputStream
in interface IFileSystemBlobStoreHome
blobStore
- The instance of the physical file which contains the
inputstream to storestrBasePath
- base directorydepth
- the depthFileAlreadyExistsException
- already existsIOException
- ioeCopyright © 2016 Mairie de Paris. All Rights Reserved.