|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.omx.services.StorageHandler
public class StorageHandler
| Constructor Summary | |
|---|---|
StorageHandler(Database db)
On instantiation, build a simple report of the current state, without running actual validation yet. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StorageHandler(Database db)
db - | Method Detail |
|---|
public File getFileStorage(Database db)
throws Exception
Exception
public File getFileStorage(boolean mustBeValid,
Database db)
throws Exception
mustBeValid -
Exception
public void deleteFileStorage(Database db)
throws Exception
Exception
public boolean hasFileStorage(boolean mustBeValid,
Database db)
throws Exception
mustBeValid -
Exception
public boolean hasValidFileStorage(Database db)
throws Exception
Exception
public void setFileStorage(String filesource,
Database db)
throws Exception
filesource -
Exception
public void validateFileStorage(Database db)
throws Exception
Exceptionpublic Report getReport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||