88 lines
2.5 KiB
Java
88 lines
2.5 KiB
Java
package org.gcube.portlets.user.reportgenerator.client;
|
|
|
|
import org.gcube.portlets.d4sreporting.common.shared.Model;
|
|
import org.gcube.portlets.d4sreporting.common.shared.Table;
|
|
import org.gcube.portlets.d4sreporting.common.shared.RepTimeSeries;
|
|
import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType;
|
|
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
|
|
*
|
|
* @version november 2011 (3.0)
|
|
*/
|
|
|
|
public interface ReportServiceAsync {
|
|
/**
|
|
* return the first ten records of the timeseries having id as param
|
|
* @param sTS .
|
|
* @param callback .
|
|
*/
|
|
void getSampleTimeSeries(RepTimeSeries sTS, AsyncCallback<Table> callback);
|
|
/**
|
|
*
|
|
* @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 .
|
|
*/
|
|
void readModel(String templateName, String templateObjectID, boolean isTemplate, boolean isImporting, AsyncCallback<Model> callback);
|
|
|
|
|
|
|
|
/**
|
|
* @param model .
|
|
* @param type .
|
|
* @param callback .
|
|
*/
|
|
void generateManifestation(Model model, ExportManifestationType type, AsyncCallback<Boolean> callback);
|
|
|
|
/**
|
|
*
|
|
* @param model .
|
|
* @param callback .
|
|
*/
|
|
void storeTemplateInSession(Model model, AsyncCallback<Void> callback);
|
|
/**
|
|
*
|
|
* call for the model previously stored in the session
|
|
* @param callback .
|
|
*/
|
|
void readTemplateFromSession( AsyncCallback<Model> callback);
|
|
|
|
/**
|
|
* @param callback .
|
|
* @param folderid .
|
|
*/
|
|
void saveReport(String folderid, String newname, AsyncCallback<Void> callback);
|
|
|
|
/**
|
|
*
|
|
* @param callback .
|
|
*/
|
|
void saveReport(AsyncCallback<Void> callback);
|
|
/**
|
|
*
|
|
* @param currentHost
|
|
* @param callback
|
|
*/
|
|
void getSessionInfo(String currentHost, AsyncCallback<SessionInfo> callback);
|
|
void getWorkflowDocumentFromDocumentLibrary(
|
|
AsyncCallback<Model> callback);
|
|
void updateWorkflowDocument(boolean update, AsyncCallback<Void> callback);
|
|
void renewLock(AsyncCallback<Void> callback);
|
|
void generateTempDocx(Model model,
|
|
AsyncCallback<String> callback);
|
|
void readImportedModel(String tempPath,
|
|
AsyncCallback<Model> callback);
|
|
}
|