Merge branch 'alpha/JAL-3066_Jalview_212_slivka-integration' into alpha/JAL-3362_Jalv...
[jalview.git] / src / jalview / ws / gui / WsJob.java
index 05379d7..e5af8c1 100644 (file)
@@ -4,6 +4,7 @@
 package jalview.ws.gui;
 
 import jalview.ws.AWsJob;
+import jalview.ws.api.JobId;
 
 /**
  * Bean that holds state for a job
@@ -173,4 +174,27 @@ public class WsJob extends AWsJob
 
   }
 
+  /*
+   * bean holding submission info for a next-gen ws job 
+   */
+  JobId jobHandle = null;
+
+  /**
+   * stash the handle for the job and mark it as submitted
+   * 
+   * @param align
+   */
+  public void setJobHandle(JobId align)
+  {
+    jobHandle = align;
+    setJobId(jobHandle.getJobId());
+    submitted = true;
+
+  }
+
+  public JobId getJobHandle()
+  {
+    return jobHandle;
+  }
+
 }