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