JAL-972 JAL-1084 propagate reference to local authentication provider so it can be...
[jalview.git] / src / jalview / ws / dbsources / das / datamodel / JalviewSource.java
index c9caf6e..11bdf02 100644 (file)
@@ -7,6 +7,7 @@ import java.util.Hashtable;
 import java.util.List;
 import java.util.Map;
 
+import org.biodas.jdas.client.threads.MultipleConnectionPropertyProviderI;
 import org.biodas.jdas.dassources.Capabilities;
 import org.biodas.jdas.dassources.utils.DasTimeFormat;
 import org.biodas.jdas.dassources.utils.RegistrySourceAdapter;
@@ -23,9 +24,10 @@ import jalview.ws.seqfetcher.DbSourceProxy;
 public class JalviewSource implements jalviewSourceI
 {
   SOURCE source;
-
-  public JalviewSource(SOURCE local2, boolean local)
+  MultipleConnectionPropertyProviderI connprov;
+  public JalviewSource(SOURCE local2, MultipleConnectionPropertyProviderI connprov, boolean local)
   {
+    this.connprov=connprov;
     this.local = local;
     source = local2;
   }
@@ -257,7 +259,7 @@ public class JalviewSource implements jalviewSourceI
           seqsources.add(ds = new DasSequenceSource(getTitle() + " ("
                   + cs.getAuthority() + " " + cs.getSource()
                   + (cs.getVersion() != null ? " " + cs.getVersion() : "")
-                  + ")", cs.getAuthority(), source, v, cs));
+                  + ")", cs.getAuthority(), source, v, cs, connprov));
           if (seqsources.size() > 1)
           {
             System.err.println("Added another sequence DB source for "
@@ -277,7 +279,7 @@ public class JalviewSource implements jalviewSourceI
       try
       {
         seqsources.add(new DasSequenceSource(getTitle(), getTitle(),
-                source, getVersion(), null));
+                source, getVersion(), null, connprov));
       } catch (Exception e)
       {
         // TODO Auto-generated catch block