2016-04-06 18:28:32 +02:00
|
|
|
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.exception.ServiceException;
|
|
|
|
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.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("dataminerman")
|
|
|
|
public interface DataMinerPortletService extends RemoteService {
|
|
|
|
|
2016-04-22 15:49:49 +02:00
|
|
|
/*
|
2016-04-06 18:28:32 +02:00
|
|
|
// get tables info belongs to a given templates set (for relative user)
|
|
|
|
public List<TableItemSimple> getTableItems(List<String> templates)
|
|
|
|
throws Exception;
|
2016-04-22 15:49:49 +02:00
|
|
|
*/
|
2016-04-06 18:28:32 +02:00
|
|
|
public List<TableItemSimple> getFileItems(List<String> templates)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
public Resource getResourceByComputationId(ComputationId computationId);
|
|
|
|
|
|
|
|
public Map<String, String> getParametersMapByComputationId(ComputationId computationId) throws ServiceException;
|
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
|
2016-04-06 18:28:32 +02:00
|
|
|
public Map<String, Resource> getMapFromMapResource(MapResource mapResource)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
// Map<String, String> getImagesInfoFromImagesResource(ImagesResource
|
|
|
|
// imgsRes) throws Exception;
|
|
|
|
|
|
|
|
public String saveImage(ComputationId computationId, ImagesResource imageResource)
|
|
|
|
throws Exception;
|
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Dataminer
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public UserInfo hello() throws ServiceException;
|
|
|
|
|
|
|
|
public List<OperatorsClassification> getOperatorsClassifications()
|
|
|
|
throws Exception;
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
public List<Parameter> getParameters(Operator operator) throws Exception;
|
|
|
|
|
2016-05-02 19:58:14 +02:00
|
|
|
public ComputationId startComputation(Operator op) throws Exception;
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
public ComputationStatus getComputationStatus(ComputationId computationId)
|
|
|
|
throws Exception;
|
|
|
|
|
|
|
|
|
|
|
|
public ComputationId resubmit(ComputationId computationId) throws ServiceException;
|
2016-04-06 18:28:32 +02:00
|
|
|
|
2016-04-08 20:34:05 +02:00
|
|
|
|
2016-04-06 18:28:32 +02:00
|
|
|
public TableItemSimple retrieveTableInformation(Item item)
|
|
|
|
throws ServiceException;
|
|
|
|
|
|
|
|
public DataMinerWorkArea getDataMinerWorkArea() throws ServiceException;
|
|
|
|
|
|
|
|
public String getPublicLink(ItemDescription itemDescription)
|
|
|
|
throws ServiceException;
|
|
|
|
|
|
|
|
public String cancelComputation(ComputationId computationId) throws ServiceException;
|
|
|
|
|
2016-04-26 18:27:28 +02:00
|
|
|
public void deleteItem(ItemDescription itemDescription)
|
|
|
|
throws ServiceException;
|
|
|
|
|
2016-04-06 18:28:32 +02:00
|
|
|
}
|