2013-10-24 12:21:28 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2013-10-24 12:51:21 +02:00
|
|
|
package org.gcube.portlets.user.td.gwtservice.client.rpc;
|
2013-10-24 12:21:28 +02:00
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2014-06-04 14:31:43 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.codelisthelper.CodelistMappingSession;
|
2013-10-24 12:51:21 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.csv.AvailableCharsetList;
|
2013-11-28 18:35:11 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVExportSession;
|
2013-10-24 12:51:21 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVImportSession;
|
2014-07-25 12:35:43 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.csv.CheckCSVSession;
|
2014-05-28 19:16:35 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
2013-10-24 12:51:21 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.file.FileUploadMonitor;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.file.HeaderPresence;
|
2014-04-15 20:24:07 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.history.OpHistory;
|
2014-04-16 11:10:31 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.history.RollBackSession;
|
2014-08-06 20:03:45 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitor;
|
2014-08-08 15:18:49 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.monitor.OperationMonitorSession;
|
2013-12-03 17:55:39 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportSession;
|
2013-10-24 12:51:21 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
|
2014-03-10 12:10:18 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.share.ShareInfo;
|
2013-12-04 12:17:48 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
|
2014-05-21 15:40:26 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResubmitSession;
|
2014-05-23 14:47:20 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.task.TaskResumeSession;
|
2014-05-08 15:35:35 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.task.ValidationsTasksMetadata;
|
2014-03-21 12:32:37 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.template.TemplateApplySession;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.template.TemplateData;
|
2014-03-25 10:23:06 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.template.TemplateDeleteSession;
|
2013-11-29 11:07:31 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.ColumnData;
|
2014-05-20 18:54:43 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.RefColumn;
|
2013-11-21 10:21:20 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.TableData;
|
2014-04-04 12:33:38 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.batch.Occurrences;
|
2014-04-08 10:44:51 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.batch.OccurrencesForReplaceBatchColumnSession;
|
2014-04-03 18:36:35 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.batch.ReplaceBatchColumnSession;
|
2014-03-07 15:26:39 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.clone.CloneTabularResourceSession;
|
2014-05-30 13:05:31 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.AddColumnSession;
|
2014-02-10 19:05:19 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.DeleteColumnSession;
|
2014-02-11 16:52:40 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.LabelColumnSession;
|
2014-03-26 19:08:43 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.ReplaceColumnSession;
|
2014-02-06 17:33:39 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.type.ChangeColumnTypeSession;
|
2013-12-02 15:22:53 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.metadata.TRMetadata;
|
2014-07-03 15:30:54 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.normalization.DenormalizationSession;
|
2014-07-02 17:31:01 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.normalization.NormalizationSession;
|
2013-11-21 10:21:20 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession;
|
2014-02-07 16:59:14 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.paging.CodelistPagingLoadConfig;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.paging.CodelistPagingLoadResult;
|
2014-03-06 15:17:25 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.rows.DeleteRowsSession;
|
2014-03-07 17:19:35 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.rows.DuplicatesSession;
|
2014-05-15 18:16:31 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.rows.EditRowSession;
|
2014-02-25 18:32:17 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.table.ChangeTableTypeSession;
|
2013-12-02 15:18:05 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.table.metadata.TabMetadata;
|
2014-04-09 19:05:47 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.table.metadata.TabValidationsMetadata;
|
2013-11-21 10:21:20 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Agencies;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Codelist;
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Dataset;
|
2014-07-15 17:32:32 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.union.UnionSession;
|
2013-12-05 15:15:21 +01:00
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
2013-11-20 18:26:49 +01:00
|
|
|
|
2013-10-24 12:21:28 +02:00
|
|
|
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>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-10-24 12:51:21 +02:00
|
|
|
public interface TDGWTServiceAsync {
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2013-12-10 17:15:51 +01:00
|
|
|
public static TDGWTServiceAsync INSTANCE = (TDGWTServiceAsync) GWT
|
2013-10-24 12:51:21 +02:00
|
|
|
.create(TDGWTService.class);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2014-04-08 18:05:17 +02:00
|
|
|
void hello(AsyncCallback<String> callback);
|
2014-02-27 09:57:16 +01:00
|
|
|
|
2014-04-04 16:02:44 +02:00
|
|
|
//TabularResource
|
2014-04-15 20:24:07 +02:00
|
|
|
void getCurrentTRId(AsyncCallback<TRId> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
void createTabularResource(TabResource tabResource,AsyncCallback<TabResource> callback);
|
2014-04-04 16:02:44 +02:00
|
|
|
void removeTabularResource(TRId trId, AsyncCallback<Void> callback);
|
|
|
|
void isTabularResourceValid(TRId trId,AsyncCallback<Boolean> callback);
|
2013-10-24 18:39:47 +02:00
|
|
|
void getTabResourceInformation(AsyncCallback<TabResource> callback);
|
2014-04-04 16:02:44 +02:00
|
|
|
void getTabResourceInformation(TRId trId,AsyncCallback<TabResource> callback);
|
2014-03-10 18:47:09 +01:00
|
|
|
void setTabResourceInformation(TabResource tabResource, AsyncCallback<Void> callback);
|
2014-01-27 18:43:16 +01:00
|
|
|
void getTRCreationDate(TRId trId,AsyncCallback<String> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
void setTabResource(TabResource tabResource, AsyncCallback<Void> callback);
|
2013-11-29 11:43:31 +01:00
|
|
|
void getTabularResources(AsyncCallback<ArrayList<TabResource>> callback);
|
2014-03-25 12:52:31 +01:00
|
|
|
void getTabularResourcesAndLastTables(AsyncCallback<ArrayList<TabResource>> callback);
|
2013-11-19 13:07:12 +01:00
|
|
|
void getLastTable(TRId trId, AsyncCallback<TableData> callback);
|
2014-02-25 16:49:43 +01:00
|
|
|
void getTable(TRId trId, AsyncCallback<TableData> callback);
|
2013-12-02 15:18:05 +01:00
|
|
|
void getTableMetadata(TRId trId, AsyncCallback<ArrayList<TabMetadata>> callback);
|
2013-12-02 15:22:53 +01:00
|
|
|
void getTRMetadata(TRId trId, AsyncCallback<ArrayList<TRMetadata>> callback);
|
2013-11-29 11:43:31 +01:00
|
|
|
void getColumns(AsyncCallback<ArrayList<ColumnData>> callback);
|
2014-01-14 19:36:19 +01:00
|
|
|
void getColumns(TRId trId, AsyncCallback<ArrayList<ColumnData>> callback);
|
2014-02-28 10:57:38 +01:00
|
|
|
void getColumnsForDimension(TRId trId, AsyncCallback<ArrayList<ColumnData>> callback);
|
2014-01-15 12:00:32 +01:00
|
|
|
void getColumn(TRId trId, String columnName, AsyncCallback<ColumnData> callback);
|
2014-04-08 12:55:34 +02:00
|
|
|
void getColumn(String columnLocalId,TRId trId, AsyncCallback<ColumnData> callback);
|
2014-05-20 18:54:43 +02:00
|
|
|
void getConnection(RefColumn refColumn, AsyncCallback<ColumnData> callback);
|
2014-05-08 15:35:35 +02:00
|
|
|
|
2014-05-21 15:40:26 +02:00
|
|
|
//Task
|
2014-08-08 15:18:49 +02:00
|
|
|
void startTaskResubmit(TaskResubmitSession taskResubmitSession,AsyncCallback<String> callback);
|
|
|
|
void startTaskResume(TaskResumeSession taskResumeSession,AsyncCallback<String> callback);
|
2014-05-21 15:40:26 +02:00
|
|
|
|
2014-05-23 14:47:20 +02:00
|
|
|
|
2014-05-08 15:35:35 +02:00
|
|
|
//Validations
|
|
|
|
void getValidationsTasksMetadata(TRId trId,AsyncCallback<ValidationsTasksMetadata> callback);
|
|
|
|
void getTableValidationsMetadata(TRId trId,AsyncCallback<TabValidationsMetadata> callback);
|
2014-04-04 16:02:44 +02:00
|
|
|
void getValidationColumns(TRId trId, String columnName, AsyncCallback<ArrayList<ColumnData>> callback);
|
2014-02-07 16:59:14 +01:00
|
|
|
|
2014-08-06 20:03:45 +02:00
|
|
|
|
2014-04-16 11:10:31 +02:00
|
|
|
//RollBack
|
2014-08-08 15:18:49 +02:00
|
|
|
void startRollBack(RollBackSession rollBackSession,AsyncCallback<String> callback);
|
2014-08-27 12:09:53 +02:00
|
|
|
void startDiscard(TRId trId,AsyncCallback<String> callback);
|
2014-04-16 11:10:31 +02:00
|
|
|
|
2014-03-10 12:10:18 +01:00
|
|
|
//Share
|
|
|
|
void getShareInfo(TRId trId, AsyncCallback<ShareInfo> callback);
|
|
|
|
|
|
|
|
void setShare(ShareInfo shareInfo, AsyncCallback<Void> callback);
|
|
|
|
|
2014-02-07 16:59:14 +01:00
|
|
|
//CodelistPagingLoaded
|
|
|
|
void setCodelistsPagingLoader(AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
void getCodelistsPagingLoader(
|
|
|
|
CodelistPagingLoadConfig codelistPagingLoadConfig,
|
|
|
|
AsyncCallback<CodelistPagingLoadResult> callback);
|
|
|
|
|
2013-10-24 12:21:28 +02:00
|
|
|
//Open
|
2014-08-08 15:18:49 +02:00
|
|
|
void tdOpen(TDOpenSession tdOpenSession, AsyncCallback<Void> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2014-03-07 15:26:39 +01:00
|
|
|
//Clone
|
2014-08-08 15:18:49 +02:00
|
|
|
String startCloneTabularResource(CloneTabularResourceSession cloneTabularResourceSession, AsyncCallback<String> callback);
|
2014-03-07 15:26:39 +01:00
|
|
|
|
|
|
|
|
2013-12-04 12:17:48 +01:00
|
|
|
//SDMX
|
2013-10-24 12:21:28 +02:00
|
|
|
void getCodelists(AsyncCallback<ArrayList<Codelist>> callback);
|
|
|
|
|
|
|
|
void getDatasets(AsyncCallback<ArrayList<Dataset>> callback);
|
|
|
|
|
|
|
|
void getAgencies(AsyncCallback<ArrayList<Agencies>> callback);
|
|
|
|
|
2013-12-04 12:17:48 +01:00
|
|
|
void setSDMXRegistrySource(SDMXRegistrySource sdmxRegistrySource, AsyncCallback<Void> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2013-12-04 12:17:48 +01:00
|
|
|
//Import SDMX
|
2014-08-08 15:18:49 +02:00
|
|
|
void startSDMXImport(SDMXImportSession sdmxImportSession,AsyncCallback<String> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
|
|
|
|
2014-06-04 14:31:43 +02:00
|
|
|
//Import CSV
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2013-11-14 19:21:17 +01:00
|
|
|
void setCSVSession(CSVImportSession csvImportSession, AsyncCallback<Void> callback);
|
|
|
|
|
|
|
|
void getFileFromWorkspace(CSVImportSession csvImportSession, AsyncCallback<Void> callback);
|
|
|
|
|
2013-10-24 12:21:28 +02:00
|
|
|
void getAvailableCharset(AsyncCallback<AvailableCharsetList> callback);
|
|
|
|
|
|
|
|
void configureCSVParser(String encoding, HeaderPresence headerPresence, char delimiter, char comment, AsyncCallback<ArrayList<String>> callback);
|
|
|
|
|
2014-07-25 12:35:43 +02:00
|
|
|
void checkCSV(long errorsLimit, AsyncCallback<CheckCSVSession> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2014-08-08 15:18:49 +02:00
|
|
|
void startCSVImport(CSVImportSession csvImportSession, AsyncCallback<String> callback);
|
2013-10-24 12:21:28 +02:00
|
|
|
|
2013-11-28 18:35:11 +01:00
|
|
|
//Export CSV
|
2014-08-08 15:18:49 +02:00
|
|
|
void startCSVExport(CSVExportSession csvExportSession, AsyncCallback<String> callback);
|
2013-11-28 18:35:11 +01:00
|
|
|
|
2013-12-03 17:55:39 +01:00
|
|
|
//Export SDMX
|
2014-08-08 15:18:49 +02:00
|
|
|
void startSDMXExport(SDMXExportSession exportSession, AsyncCallback<String> callback);
|
2014-02-06 17:33:39 +01:00
|
|
|
|
|
|
|
|
2014-03-06 15:17:25 +01:00
|
|
|
//Table Operation
|
2014-08-08 15:18:49 +02:00
|
|
|
void startChangeTableType(ChangeTableTypeSession changeTableTypeSession,AsyncCallback<String> callback);
|
|
|
|
void startUnion(UnionSession unionSession, AsyncCallback<String> callback);
|
2014-07-15 17:32:32 +02:00
|
|
|
|
|
|
|
|
2014-03-06 15:17:25 +01:00
|
|
|
//Rows Operation
|
2014-08-08 15:18:49 +02:00
|
|
|
void startEditRow(EditRowSession editRowSession,AsyncCallback<String> callback);
|
|
|
|
void startDeleteRows(DeleteRowsSession deleteRowsSession,AsyncCallback<String> callback);
|
|
|
|
void startDuplicates(DuplicatesSession duplicatesSession,AsyncCallback<String> callback);
|
2014-03-06 15:17:25 +01:00
|
|
|
|
2014-02-10 19:05:19 +01:00
|
|
|
//Column Operation
|
2014-08-08 15:18:49 +02:00
|
|
|
void startChangeColumnType(ChangeColumnTypeSession changeColumnTypeSession,AsyncCallback<String> callback);
|
|
|
|
void startAddColumn(AddColumnSession addColumnSession,AsyncCallback<String> callback);
|
|
|
|
void startDeleteColumn(DeleteColumnSession deleteColumnSession,AsyncCallback<String> callback);
|
|
|
|
void startLabelColumn(LabelColumnSession labelColumnSession,AsyncCallback<String> callback);
|
|
|
|
|
2014-06-04 19:05:16 +02:00
|
|
|
/*void startSplitColumn(SplitColumnSession splitColumnSession,AsyncCallback<Void> callback);*/
|
|
|
|
/*void startSplitColumn(MergeColumnSession mergeColumnSession,AsyncCallback<Void> callback); */
|
2014-06-24 11:24:04 +02:00
|
|
|
/*void startGroupBy(GroupBySession groupBySession,AsyncCallback<Void> callback);*/
|
|
|
|
|
|
|
|
|
2014-06-04 18:46:06 +02:00
|
|
|
|
2014-03-18 15:46:10 +01:00
|
|
|
//BatchReplace Operation
|
2014-04-08 10:44:51 +02:00
|
|
|
void getOccurrencesForBatchReplace(OccurrencesForReplaceBatchColumnSession occurrencesForReplaceBatchColumnSession, AsyncCallback<ArrayList<Occurrences>> callback);
|
2014-08-08 15:18:49 +02:00
|
|
|
void startReplaceBatchColumn(ReplaceBatchColumnSession replaceBatchColumnSession,AsyncCallback<String> callback);
|
2014-02-11 16:52:40 +01:00
|
|
|
|
2014-03-26 19:08:43 +01:00
|
|
|
//Replace Operation
|
2014-08-08 15:18:49 +02:00
|
|
|
void startReplaceColumn(ReplaceColumnSession replaceColumnSession,AsyncCallback<String> callback);
|
2014-03-26 19:08:43 +01:00
|
|
|
|
2014-03-21 12:32:37 +01:00
|
|
|
//Templates
|
|
|
|
void getTemplates(AsyncCallback<ArrayList<TemplateData>> callback);
|
2014-08-08 15:18:49 +02:00
|
|
|
void startTemplateApply(TemplateApplySession templateDeleteSession,AsyncCallback<String> callback);
|
|
|
|
void templateDelete(TemplateDeleteSession templateDeleteSession,AsyncCallback<Void> callback);
|
2014-03-25 10:23:06 +01:00
|
|
|
|
2014-04-08 18:05:17 +02:00
|
|
|
//Locales
|
|
|
|
void getLocales(AsyncCallback<ArrayList<String>> callback);
|
2014-03-21 12:32:37 +01:00
|
|
|
|
2014-04-15 20:24:07 +02:00
|
|
|
//History
|
|
|
|
void getHistory(AsyncCallback<ArrayList<OpHistory>> callback);
|
|
|
|
void getHistory(TRId trId, AsyncCallback<ArrayList<OpHistory>> callback);
|
|
|
|
void getLastOperationInfo(AsyncCallback<OpHistory> callback);
|
|
|
|
void getLastOperationInfo(TRId trId, AsyncCallback<OpHistory> callback);
|
|
|
|
|
2014-06-04 14:31:43 +02:00
|
|
|
//Helper Extract Codelist
|
2014-08-08 15:18:49 +02:00
|
|
|
void startExtractCodelist(ExtractCodelistSession extractCodelistSession, AsyncCallback<String> callback);
|
2014-06-04 14:31:43 +02:00
|
|
|
|
|
|
|
//Helper Codelist Mapping Import
|
|
|
|
void setCodelistMappingSession(CodelistMappingSession codelistMappingSession, AsyncCallback<Void> callback);
|
|
|
|
void getFileFromWorkspace(CodelistMappingSession codelistMappingSession, AsyncCallback<Void> callback);
|
2014-08-08 15:18:49 +02:00
|
|
|
void startCodelistMappingImport(CodelistMappingSession codelistMappingSession, AsyncCallback<String> callback);
|
2014-07-02 17:31:01 +02:00
|
|
|
|
|
|
|
//Normalization
|
2014-08-08 15:18:49 +02:00
|
|
|
void startNormalization(NormalizationSession normalizationSession, AsyncCallback<String> callback);
|
2014-07-03 15:30:54 +02:00
|
|
|
|
|
|
|
//Denormalization
|
2014-08-08 15:18:49 +02:00
|
|
|
void startDenormalization(DenormalizationSession denormalizationSession, AsyncCallback<String> callback);
|
2014-06-04 14:31:43 +02:00
|
|
|
|
2014-08-06 20:03:45 +02:00
|
|
|
//Operation Monitor
|
|
|
|
void getOperationMonitor(OperationMonitorSession operationMonitorSession, AsyncCallback<OperationMonitor> callback);
|
|
|
|
|
2014-08-08 15:18:49 +02:00
|
|
|
//File Upload Monitor
|
|
|
|
void getFileUploadMonitor(AsyncCallback<FileUploadMonitor> callback);
|
|
|
|
|
2014-08-06 20:03:45 +02:00
|
|
|
|
2013-10-24 12:21:28 +02:00
|
|
|
}
|