webfunds.client.util
Class Backup
java.lang.Object
|
+--webfunds.client.util.Backup
- public final class Backup
- extends java.lang.Object
Helper functions dealing with Backups and Restores
|
Method Summary |
static void |
backup(UInterface ui,
java.io.File srcDir)
Kludge attempt at making a backup. |
protected static void |
logmsg(java.lang.String s)
|
static boolean |
recover(UInterface ui,
java.io.File targetDir,
java.lang.String callerName)
XXX: Kludge attempt at recovering a backup. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BACKUP_DIR
public static final java.lang.String BACKUP_DIR
logmsg
protected static void logmsg(java.lang.String s)
backup
public static void backup(UInterface ui,
java.io.File srcDir)
- Kludge attempt at making a backup.
None of this belongs here, it needs a home elsewhere...
- Parameters:
srcDir - is the current directory where entire app is installed
recover
public static boolean recover(UInterface ui,
java.io.File targetDir,
java.lang.String callerName)
- XXX: Kludge attempt at recovering a backup.
Note that targetDir is not the same as the backup() paramater.
- Parameters:
targetDir - is the user directory where data is stored- Returns:
- true if restart thought necessary (recovery done), else false