59760d40a10e90d35221602e35d5af53689e65f0
[jalview.git] / src / jalview / ws / dbsources / das / api / DasSourceRegistryI.java
1 package jalview.ws.dbsources.das.api;
2
3 import java.util.Hashtable;
4 import java.util.List;
5 import java.util.Map;
6
7 import org.biodas.jdas.client.ConnectionPropertyProviderI;
8 import org.biodas.jdas.client.threads.MultipleConnectionPropertyProviderI;
9 import org.biodas.jdas.schema.sources.SOURCE;
10
11 /**
12  * API for a registry that provides datasources that jalview can access
13  * 
14  * @author jprocter
15  * 
16  */
17 public interface DasSourceRegistryI
18 {
19
20   List<jalviewSourceI> getSources();
21
22   String getDasRegistryURL();
23
24   jalviewSourceI getSource(String nickname);
25
26   // TODO: re JAL-424 - introduce form where local source is queried for
27   // metadata, rather than have it all provided by caller.
28   jalviewSourceI createLocalSource(String uri, String name,
29           boolean sequence, boolean features);
30
31   boolean removeLocalSource(jalviewSourceI source);
32
33   void refreshSources();
34
35   String getLocalSourceString();
36
37   List<jalviewSourceI> resolveSourceNicknames(List<String> sources);
38
39   // TODO: refactor to jDAS specific interface
40   MultipleConnectionPropertyProviderI getSessionHandler();
41 }