public class StorageHandler extends Object
| Constructor and Description |
|---|
StorageHandler(Database db)
On instantiation, build a simple report of the current state, without
running actual validation yet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFileStorage(Database db)
Remove file storage location and validation status.
|
File |
getFileStorage(boolean mustBeValid,
Database db)
Get the path of the file storage.
|
File |
getFileStorage(Database db)
Get the path of the file storage, regardless whether it is valid or not.
|
Report |
getReport() |
boolean |
hasFileStorage(boolean mustBeValid,
Database db)
Ask if these is a file storage location available, regardless whether it
is valid or not.
|
boolean |
hasValidFileStorage(Database db)
Ask if these is a valid file storage location available.
|
void |
setFileStorage(String filesource,
Database db)
Save this path in the form of a string to the file storage path entity.
|
void |
validateFileStorage(Database db)
Run validation check on the current set file storage path.
|
public StorageHandler(Database db)
db - public File getFileStorage(Database db) throws Exception
Exceptionpublic File getFileStorage(boolean mustBeValid, Database db) throws Exception
mustBeValid - Exceptionpublic void deleteFileStorage(Database db) throws Exception
Exceptionpublic boolean hasFileStorage(boolean mustBeValid,
Database db)
throws Exception
mustBeValid - Exceptionpublic boolean hasValidFileStorage(Database db) throws Exception
Exceptionpublic void setFileStorage(String filesource, Database db) throws Exception
filesource - Exceptionpublic void validateFileStorage(Database db) throws Exception
Exceptionpublic Report getReport()
Copyright © 2013. All Rights Reserved.