Class Preference
java.lang.Object
de.spiritscorp.datasync.io.Preference
Isolated parameters state tracker mapped to a dedicated profile workspace scope.
- Author:
- Tom Spirit
-
Method Summary
Modifier and TypeMethodDescriptionlongRetrieves the last recorded scan execution timestamp.booleanbooleanbooleanbooleanisBgSync()booleanisLogOn()booleanisSubDir()booleanvoidPersists the current timestamp as the last successful scan execution time.voidsetAutoBgDel(boolean autoBgDel) voidsetAutoDel(boolean autoDel) voidsetAutoSync(boolean autoSync) voidsetBgSync(boolean bgSync) voidvoidsetDestPath(ArrayList<Path> paths) voidsetLogOn(boolean logOn) voidsetScanMode(ScanType mode) voidsetSourcePath(ArrayList<Path> paths) voidvoidvoidsetSubDir(boolean subDir) voidsetTrashbin(boolean trashbin) void
-
Method Details
-
saveLastScanTime
public void saveLastScanTime()Persists the current timestamp as the last successful scan execution time. -
getLastScanTime
public long getLastScanTime()Retrieves the last recorded scan execution timestamp.- Returns:
- Unix epoch millis, or 0 if no timer token exists yet.
-
writeSyncMap
public void writeSyncMap() -
getJobName
-
getSourcePath
-
setSourcePath
-
getDestPath
-
setDestPath
-
getStartSourcePath
-
setStartSourcePath
-
getStartDestPath
-
setStartDestPath
-
getSyncMap
-
getScanMode
-
setScanMode
-
getBgTime
-
setBgTime
-
isLogOn
public boolean isLogOn() -
setLogOn
public void setLogOn(boolean logOn) -
isSubDir
public boolean isSubDir() -
setSubDir
public void setSubDir(boolean subDir) -
isAutoDel
public boolean isAutoDel() -
setAutoDel
public void setAutoDel(boolean autoDel) -
isAutoBgDel
public boolean isAutoBgDel() -
setAutoBgDel
public void setAutoBgDel(boolean autoBgDel) -
isAutoSync
public boolean isAutoSync() -
setAutoSync
public void setAutoSync(boolean autoSync) -
isBgSync
public boolean isBgSync() -
setBgSync
public void setBgSync(boolean bgSync) -
isTrashbin
public boolean isTrashbin() -
setTrashbin
public void setTrashbin(boolean trashbin) -
getTrashbinPath
-