2013-02-06 23:25:43 +01:00
|
|
|
package org.gcube.portlets.user.reportgenerator.client;
|
|
|
|
|
2013-03-01 19:42:50 +01:00
|
|
|
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
|
|
|
import org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries;
|
2013-03-15 19:06:43 +01:00
|
|
|
import org.gcube.portlets.d4sreporting.common.shared.Table;
|
2013-10-09 14:21:50 +02:00
|
|
|
import org.gcube.portlets.widgets.exporter.shared.TypeExporter;
|
2013-02-06 23:25:43 +01:00
|
|
|
import org.gcube.portlets.user.reportgenerator.shared.SessionInfo;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
/**
|
|
|
|
* * Service interface for server Async communication
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
public interface ReportServiceAsync {
|
|
|
|
/**
|
|
|
|
* return the first ten records of the timeseries having id as param
|
|
|
|
* @param sTS .
|
|
|
|
* @param callback .
|
|
|
|
*/
|
2013-03-01 19:42:50 +01:00
|
|
|
void getSampleTimeSeries(RepTimeSeries sTS, AsyncCallback<Table> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param callback .
|
|
|
|
*/
|
|
|
|
void getUserTemplateNames(AsyncCallback<String[]> callback);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param templateName .
|
|
|
|
* @param templateObjectID .
|
|
|
|
* @param isTemplate says if you're opening a template or a report
|
|
|
|
* @param isImporting says if your importing or youre loading a template in the UI
|
|
|
|
* @param callback .
|
|
|
|
*/
|
2013-03-01 19:42:50 +01:00
|
|
|
void readModel(String templateName, String templateObjectID, boolean isTemplate, boolean isImporting, AsyncCallback<Model> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param model .
|
|
|
|
* @param callback .
|
|
|
|
*/
|
2013-03-01 19:42:50 +01:00
|
|
|
void storeTemplateInSession(Model model, AsyncCallback<Void> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* call for the model previously stored in the session
|
|
|
|
* @param callback .
|
|
|
|
*/
|
2013-03-01 19:42:50 +01:00
|
|
|
void readTemplateFromSession( AsyncCallback<Model> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
|
2013-05-06 17:38:24 +02:00
|
|
|
void saveReport(Model toSave, String folderid, String newname,
|
|
|
|
AsyncCallback<Void> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
|
2013-05-06 17:38:24 +02:00
|
|
|
void saveReport(Model toSave, AsyncCallback<Void> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param currentHost
|
|
|
|
* @param callback
|
|
|
|
*/
|
|
|
|
void getSessionInfo(String currentHost, AsyncCallback<SessionInfo> callback);
|
|
|
|
void getWorkflowDocumentFromDocumentLibrary(
|
2013-03-01 19:42:50 +01:00
|
|
|
AsyncCallback<Model> callback);
|
2013-05-06 17:38:24 +02:00
|
|
|
void updateWorkflowDocument(Model toSave, boolean update,
|
|
|
|
AsyncCallback<Void> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
void renewLock(AsyncCallback<Void> callback);
|
2013-03-13 17:15:29 +01:00
|
|
|
|
2013-02-06 23:25:43 +01:00
|
|
|
void readImportedModel(String tempPath,
|
2013-03-01 19:42:50 +01:00
|
|
|
AsyncCallback<Model> callback);
|
2013-03-15 19:06:43 +01:00
|
|
|
void save(String filePath, String workspaceFolderId, String ItemName,
|
|
|
|
TypeExporter type, boolean overwrite, AsyncCallback<String> callback);
|
2013-04-30 16:16:20 +02:00
|
|
|
void renewHTTPSession(AsyncCallback<Void> callback);
|
2013-02-06 23:25:43 +01:00
|
|
|
}
|