package org.gcube.portlets.user.dataminermanager.client.rpc; import java.util.List; import java.util.Map; import org.gcube.portlets.user.dataminermanager.client.bean.ComputationStatus; import org.gcube.portlets.user.dataminermanager.client.bean.Operator; import org.gcube.portlets.user.dataminermanager.client.bean.OperatorsClassification; import org.gcube.portlets.user.dataminermanager.client.bean.output.ImagesResource; import org.gcube.portlets.user.dataminermanager.client.bean.output.MapResource; import org.gcube.portlets.user.dataminermanager.client.bean.output.Resource; import org.gcube.portlets.user.dataminermanager.client.bean.parameters.Parameter; import org.gcube.portlets.user.dataminermanager.shared.data.ComputationId; import org.gcube.portlets.user.dataminermanager.shared.data.TableItemSimple; import org.gcube.portlets.user.dataminermanager.shared.session.UserInfo; import org.gcube.portlets.user.dataminermanager.shared.workspace.DataMinerWorkArea; import org.gcube.portlets.user.dataminermanager.shared.workspace.ItemDescription; import org.gcube.portlets.widgets.wsexplorer.shared.Item; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; /** * * @author Giancarlo Panichi * email: g.panichi@isti.cnr.it * */ public interface DataMinerPortletServiceAsync { public static DataMinerPortletServiceAsync INSTANCE = (DataMinerPortletServiceAsync) GWT .create(DataMinerPortletService.class); /* void getTableItems(List templates, AsyncCallback> callback); */ void getFileItems(List templates, AsyncCallback> callback); void getResourceByComputationId(ComputationId computationId, AsyncCallback callback); void getMapFromMapResource(MapResource mapResource, AsyncCallback> callback); void getParametersMapByComputationId(ComputationId computationId, AsyncCallback> callback); void saveImage(ComputationId computationId, ImagesResource imageResource, AsyncCallback callback); /** * DataMiner * */ void hello(AsyncCallback callback); void getOperatorsClassifications( AsyncCallback> callback); void getParameters(Operator operator, AsyncCallback> callback); void startComputation(Operator op, String computationTitle, String computationDescription, AsyncCallback asyncCallback); void getComputationStatus(ComputationId computationId, AsyncCallback asyncCallback); void resubmit(ComputationId computationId, AsyncCallback callback); void retrieveTableInformation(Item item, AsyncCallback callback); void getDataMinerWorkArea(AsyncCallback asyncCallback); void getPublicLink(ItemDescription itemDescription, AsyncCallback callback); void cancelComputation(ComputationId computationId, AsyncCallback asyncCallback); void deleteItem(ItemDescription itemDescription, AsyncCallback callback); }