JAL-1191 added mRNA isA transcript to SequenceOntologyLite (because
[jalview.git] / src / jalview / ws / sifts / SiftsSettings.java
index c666e2c..e1e3de8 100644 (file)
@@ -1,9 +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;
@@ -13,4 +21,38 @@ public class SiftsSettings
   {
     SiftsSettings.mapWithSifts = mapWithSifts;
   }
+
+  public static String getSiftDownloadDirectory()
+  {
+    return siftDownloadDirectory;
+  }
+
+  public static void setSiftDownloadDirectory(String siftDownloadDirectory)
+  {
+    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);
+  }
 }