80 lines
2.8 KiB
Java
80 lines
2.8 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.td.gxtservice.client.rpc;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import org.gcube.portlets.user.td.gxtservice.shared.Agencies;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.Codelist;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.Dataset;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.TDOpenSession;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.TabResource;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.csv.AvailableCharsetList;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.csv.CSVImportMonitor;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.csv.CSVImportSession;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.csv.CSVRowError;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.file.FileUploadMonitor;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.file.HeaderPresence;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.sdmx.SDMXImportMonitor;
|
|
import org.gcube.portlets.user.td.gxtservice.shared.sdmx.SDMXImportSession;
|
|
|
|
import com.google.gwt.core.client.GWT;
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
/**
|
|
*
|
|
* @author "Giancarlo Panichi" <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
|
|
public interface TDGXTServiceAsync {
|
|
|
|
public TDGXTServiceAsync INSTANCE = GWT
|
|
.create(TDGXTService.class);
|
|
|
|
void createTabularResource(TabResource tabResource,AsyncCallback<TabResource> callback);
|
|
|
|
void getTabResource(AsyncCallback<TabResource> callback);
|
|
|
|
void setTabResource(TabResource tabResource, AsyncCallback<Void> callback);
|
|
|
|
void getTabularResources(AsyncCallback<List<TabResource>> callback);
|
|
|
|
//Open
|
|
void setTDOpenSession(TDOpenSession s, AsyncCallback<Void> callback);
|
|
|
|
//Import SDMX
|
|
void getCodelists(AsyncCallback<ArrayList<Codelist>> callback);
|
|
|
|
void getDatasets(AsyncCallback<ArrayList<Dataset>> callback);
|
|
|
|
void getAgencies(AsyncCallback<ArrayList<Agencies>> callback);
|
|
|
|
void setSDMXSession(SDMXImportSession s, AsyncCallback<Void> callback);
|
|
|
|
void getSDMXImportMonitor(AsyncCallback<SDMXImportMonitor> callback);
|
|
|
|
void importSDMXClientLibraryRequest(SDMXImportSession s,AsyncCallback<Void> callback);
|
|
|
|
//Import CSV
|
|
void getFileUploadMonitor(AsyncCallback<FileUploadMonitor> callback);
|
|
|
|
void getCSVImportMonitor(AsyncCallback<CSVImportMonitor> callback);
|
|
|
|
void setCSVSession(CSVImportSession s, AsyncCallback<Void> callback);
|
|
|
|
|
|
void getAvailableCharset(AsyncCallback<AvailableCharsetList> callback);
|
|
|
|
void configureCSVParser(String encoding, HeaderPresence headerPresence, char delimiter, char comment, AsyncCallback<ArrayList<String>> callback);
|
|
|
|
void checkCSV(long errorsLimit, AsyncCallback<ArrayList<CSVRowError> > callback);
|
|
|
|
void startCSVImport(boolean[] columnToImportMask, AsyncCallback<Void> callback);
|
|
|
|
|
|
}
|