X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fsifts%2FSiftsSettings.java;h=e1e3de80a281ff1f7ec7a1689daa07dd4b8c5348;hb=9e5253dce9d7547e3191d596ed10f73e4af0cc1d;hp=5554658e69413fb40c430b8afe605e9d7457c3c5;hpb=d9b79c023346253c10dc907d1e75f509823266c4;p=jalview.git diff --git a/src/jalview/ws/sifts/SiftsSettings.java b/src/jalview/ws/sifts/SiftsSettings.java index 5554658..e1e3de8 100644 --- a/src/jalview/ws/sifts/SiftsSettings.java +++ b/src/jalview/ws/sifts/SiftsSettings.java @@ -1,11 +1,17 @@ package jalview.ws.sifts; +import java.util.Objects; + public class SiftsSettings { private static boolean mapWithSifts = false; private static String siftDownloadDirectory; + private static int cacheThresholdInDays; + + private static int failSafePIDThreshold; + public static boolean isMapWithSifts() { return mapWithSifts; @@ -25,4 +31,28 @@ public class SiftsSettings { SiftsSettings.siftDownloadDirectory = siftDownloadDirectory; } + + public static int getCacheThresholdInDays() + { + return cacheThresholdInDays; + } + + public static void setCacheThresholdInDays(String cacheThresholdInDays) + { + Objects.requireNonNull(cacheThresholdInDays); + SiftsSettings.cacheThresholdInDays = Integer + .valueOf(cacheThresholdInDays); + } + + public static int getFailSafePIDThreshold() + { + return failSafePIDThreshold; + } + + public static void setFailSafePIDThreshold(String failSafePIDThreshold) + { + Objects.requireNonNull(failSafePIDThreshold); + SiftsSettings.failSafePIDThreshold = Integer + .valueOf(failSafePIDThreshold); + } }