Class Preference

java.lang.Object
de.spiritscorp.datasync.io.Preference

public final class Preference extends Object
Isolated parameters state tracker mapped to a dedicated profile workspace scope.
Author:
Tom Spirit
  • 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

      public String getJobName()
    • getSourcePath

      public ArrayList<Path> getSourcePath()
    • setSourcePath

      public void setSourcePath(ArrayList<Path> paths)
    • getDestPath

      public ArrayList<Path> getDestPath()
    • setDestPath

      public void setDestPath(ArrayList<Path> paths)
    • getStartSourcePath

      public Path getStartSourcePath()
    • setStartSourcePath

      public void setStartSourcePath(Path p)
    • getStartDestPath

      public Path getStartDestPath()
    • setStartDestPath

      public void setStartDestPath(Path p)
    • getSyncMap

      public Map<Path, FileAttributes> getSyncMap()
    • getScanMode

      public ScanType getScanMode()
    • setScanMode

      public void setScanMode(ScanType mode)
    • getBgTime

      public BgTime getBgTime()
    • setBgTime

      public void setBgTime(BgTime time)
    • 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

      public Path getTrashbinPath()