JAL-424 TODO: new method signature for local source creation
[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  * @author jprocter
14  *
15  */
16 public interface DasSourceRegistryI
17 {
18
19   List<jalviewSourceI> getSources();
20
21   String getDasRegistryURL();
22
23   jalviewSourceI getSource(String nickname);
24
25   //TODO: re JAL-424 - introduce form where local source is queried for metadata, rather than have it all provided by caller.
26   jalviewSourceI createLocalSource(String uri, String name, boolean sequence,
27           boolean features);
28   boolean removeLocalSource(jalviewSourceI source);
29
30   void refreshSources();
31
32   String getLocalSourceString();
33
34   List<jalviewSourceI> resolveSourceNicknames(List<String> sources);
35   // TODO: refactor to jDAS specific interface
36   MultipleConnectionPropertyProviderI getSessionHandler();
37 }