View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2007 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // GenomeBrowser Project
18  //
19  // BrowserServiceAsync.java
20  // Since: Apr 20, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client;
26  
27  import java.util.List;
28  
29  import org.utgenome.gwt.utgb.client.bean.DatabaseEntry;
30  import org.utgenome.gwt.utgb.client.bio.ChrLoc;
31  import org.utgenome.gwt.utgb.client.bio.ChrRange;
32  import org.utgenome.gwt.utgb.client.bio.CompactWIGData;
33  import org.utgenome.gwt.utgb.client.bio.GenomeDB;
34  import org.utgenome.gwt.utgb.client.bio.KeywordSearchResult;
35  import org.utgenome.gwt.utgb.client.bio.OnGenome;
36  import org.utgenome.gwt.utgb.client.bio.ReadQueryConfig;
37  import org.utgenome.gwt.utgb.client.bio.SAMRead;
38  import org.utgenome.gwt.utgb.client.bio.WigGraphData;
39  import org.utgenome.gwt.utgb.client.track.bean.TrackBean;
40  import org.utgenome.gwt.utgb.client.view.TrackView;
41  
42  import com.google.gwt.user.client.rpc.AsyncCallback;
43  import com.google.gwt.user.client.rpc.RemoteService;
44  
45  public interface BrowserServiceAsync extends RemoteService {
46  
47  	public void createTrackView(String silk, AsyncCallback<TrackView> callback);
48  
49  	public void getTrackView(String viewName, AsyncCallback<TrackView> callback);
50  
51  	public void getHTTPContent(String url, AsyncCallback<String> callback);
52  
53  	public void getDatabaseCatalog(String jdbcAddress, AsyncCallback<String> callback);
54  
55  	public void getTableData(String jdbcAddress, String tableName, AsyncCallback<String> callback);
56  
57  	public void getTrackList(int entriesPerPage, int page, AsyncCallback<List<TrackBean>> callback);
58  
59  	public void numHitsOfTracks(String prefix, AsyncCallback<Integer> callback);
60  
61  	public void getTrackList(String prefix, int entriesPerPage, int page, AsyncCallback<List<TrackBean>> callback);
62  
63  	public void keywordSearch(String species, String revision, String keyword, int entriesPerPage, int page, AsyncCallback<KeywordSearchResult> callback);
64  
65  	public void getChrRegion(String species, String revision, AsyncCallback<ChrRange> callback);
66  
67  	public void getChildDBGroups(String parentDBGroup, AsyncCallback<List<String>> callback);
68  
69  	public void getDBNames(String dbGroup, AsyncCallback<List<String>> callback);
70  
71  	public void getDBEntry(String dbGroup, AsyncCallback<List<DatabaseEntry>> callback);
72  
73  	public void getWigDataList(String fileName, int windowWidth, ChrLoc location, AsyncCallback<List<WigGraphData>> callback);
74  
75  	public void getCompactWigDataList(String fileName, int windowWidth, ChrLoc location, AsyncCallback<List<CompactWIGData>> callback);
76  
77  	public void getSAMReadList(String readFileName, String refSeqFileName, AsyncCallback<List<SAMRead>> callback);
78  
79  	public void querySAMReadList(String bamFileName, String indexFileName, String refSeqFileName, String rname, int start, int end,
80  			AsyncCallback<List<SAMRead>> callback);
81  
82  	public void getRefSeq(String refSeqFileName, String rname, int start, int end, AsyncCallback<String> callback);
83  
84  	public void getOnGenomeData(GenomeDB db, ChrLoc range, ReadQueryConfig config, AsyncCallback<List<OnGenome>> callback);
85  
86  }