public class StorageHandler
extends java.lang.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.
|
java.io.File |
getFileStorage(boolean mustBeValid,
DataService dataService)
Get the path of the file storage.
|
java.io.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(java.lang.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 java.io.File getFileStorage(DataService dataService) throws java.lang.Exception
java.lang.Exceptionpublic java.io.File getFileStorage(boolean mustBeValid,
DataService dataService)
throws java.lang.Exception
mustBeValid - java.lang.Exceptionpublic void deleteFileStorage(DataService dataService) throws java.lang.Exception
java.lang.Exceptionpublic boolean hasFileStorage(boolean mustBeValid,
DataService dataService)
throws java.lang.Exception
mustBeValid - java.lang.Exceptionpublic boolean hasValidFileStorage(DataService dataService) throws java.lang.Exception
java.lang.Exceptionpublic void setFileStorage(java.lang.String filesource,
DataService dataService)
throws java.lang.Exception
filesource - java.lang.Exceptionpublic void validateFileStorage(DataService dataService) throws java.lang.Exception
java.lang.Exceptionpublic Report getReport()
Copyright © 2014. All Rights Reserved.