2015-11-24 16:22:17 +01:00
|
|
|
package org.gcube.portlets.user.statisticalalgorithmsimporter.client.rpc;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.code.CodeData;
|
2017-06-06 20:15:22 +02:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.descriptor.SAIDescriptor;
|
2019-10-01 17:42:23 +02:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.dminfo.ServiceInfo;
|
2015-11-24 16:22:17 +01:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.exception.StatAlgoImporterServiceException;
|
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.file.FileUploadMonitor;
|
2015-12-14 18:44:54 +01:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.project.InputData;
|
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.project.Project;
|
2017-06-07 19:46:05 +02:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.project.ProjectCreateSession;
|
2015-11-24 16:22:17 +01:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.session.UserInfo;
|
2015-12-11 18:02:03 +01:00
|
|
|
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.workspace.ItemDescription;
|
2015-11-24 16:22:17 +01:00
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-12 18:26:05 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2015-11-24 16:22:17 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("statalgoimporterservice")
|
|
|
|
public interface StatAlgoImporterService extends RemoteService {
|
|
|
|
/**
|
|
|
|
* Get informations on the current user
|
|
|
|
*
|
2016-02-19 10:49:10 +01:00
|
|
|
* @return UserInfo user inforamations
|
2015-11-24 16:22:17 +01:00
|
|
|
* @throws StatAlgoImporterServiceException
|
2017-05-12 18:26:05 +02:00
|
|
|
* exception
|
2015-11-24 16:22:17 +01:00
|
|
|
*/
|
|
|
|
public UserInfo hello() throws StatAlgoImporterServiceException;
|
|
|
|
|
2017-06-06 20:15:22 +02:00
|
|
|
/**
|
|
|
|
* Retrieve SAI descriptort
|
|
|
|
*
|
|
|
|
* @return SAI descriptort
|
2017-12-18 13:01:19 +01:00
|
|
|
* @throws StatAlgoImporterServiceException
|
|
|
|
* Exception
|
2017-06-06 20:15:22 +02:00
|
|
|
*/
|
2019-09-18 17:26:29 +02:00
|
|
|
public SAIDescriptor getSAIDescriptor() throws StatAlgoImporterServiceException;
|
2017-06-06 20:15:22 +02:00
|
|
|
|
2015-11-24 16:22:17 +01:00
|
|
|
// File Upload Monitor
|
|
|
|
/**
|
|
|
|
* Get File Upload Monitor during the file upload operation in Import CSV
|
|
|
|
*
|
2017-05-12 18:26:05 +02:00
|
|
|
* @return FileUploadMonitor file upload monitor
|
2015-11-24 16:22:17 +01:00
|
|
|
* @throws StatAlgoImporterServiceException
|
2017-05-12 18:26:05 +02:00
|
|
|
* exception
|
2015-11-24 16:22:17 +01:00
|
|
|
*/
|
2017-05-12 18:26:05 +02:00
|
|
|
public FileUploadMonitor getFileUploadMonitor() throws StatAlgoImporterServiceException;
|
2015-11-24 16:22:17 +01:00
|
|
|
|
|
|
|
// Code
|
2017-05-12 18:26:05 +02:00
|
|
|
public ArrayList<CodeData> getCode() throws StatAlgoImporterServiceException;
|
2015-12-04 18:45:47 +01:00
|
|
|
|
2017-12-18 13:01:19 +01:00
|
|
|
public Project createProjectOnWorkspace(ProjectCreateSession projectCreateSession)
|
|
|
|
throws StatAlgoImporterServiceException;
|
2015-12-11 18:02:03 +01:00
|
|
|
|
2015-12-04 18:45:47 +01:00
|
|
|
//
|
2017-05-12 18:26:05 +02:00
|
|
|
public Project setMainCode(ItemDescription itemDescription) throws StatAlgoImporterServiceException;
|
2017-12-18 13:01:19 +01:00
|
|
|
|
2017-06-09 18:35:45 +02:00
|
|
|
public Project setBinaryCode(ItemDescription itemDescription) throws StatAlgoImporterServiceException;
|
2017-12-18 13:01:19 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public void addResourceToProject(ItemDescription itemDescription) throws StatAlgoImporterServiceException;
|
2015-12-14 18:44:54 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public Project deleteResourceOnProject(ItemDescription itemDescription) throws StatAlgoImporterServiceException;
|
2015-12-11 18:02:03 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public void saveProject(InputData inputData) throws StatAlgoImporterServiceException;
|
2015-12-14 18:44:54 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public Project openProjectOnWorkspace(ItemDescription newProjectFolder) throws StatAlgoImporterServiceException;
|
2015-11-24 16:22:17 +01:00
|
|
|
|
2015-12-18 17:55:57 +01:00
|
|
|
public void saveCode(String code) throws StatAlgoImporterServiceException;
|
|
|
|
|
2017-06-12 18:21:54 +02:00
|
|
|
public Project createSoftware(InputData inputData) throws StatAlgoImporterServiceException;
|
2016-01-18 12:59:57 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public String getPublicLink(ItemDescription itemDescription) throws StatAlgoImporterServiceException;
|
2016-01-11 17:01:28 +01:00
|
|
|
|
2017-05-12 18:26:05 +02:00
|
|
|
public Project restoreUISession(String value) throws StatAlgoImporterServiceException;
|
2016-01-18 12:59:57 +01:00
|
|
|
|
2017-12-18 13:01:19 +01:00
|
|
|
public Project setNewCode(InputData inputData, ItemDescription itemDescription, String code)
|
|
|
|
throws StatAlgoImporterServiceException;
|
2016-01-18 17:28:55 +01:00
|
|
|
|
2017-07-17 18:39:42 +02:00
|
|
|
public String publishSoftware() throws StatAlgoImporterServiceException;
|
2016-01-13 17:26:54 +01:00
|
|
|
|
2017-07-17 18:39:42 +02:00
|
|
|
public String getDeployOperationStatus(String operationId) throws StatAlgoImporterServiceException;
|
2017-12-18 13:01:19 +01:00
|
|
|
|
2017-07-17 18:39:42 +02:00
|
|
|
public String getDeployOperationLogs(String operationId) throws StatAlgoImporterServiceException;
|
2017-12-18 13:01:19 +01:00
|
|
|
|
2016-01-26 16:31:34 +01:00
|
|
|
public void repackageSoftware() throws StatAlgoImporterServiceException;
|
|
|
|
|
2018-10-03 19:46:01 +02:00
|
|
|
public ItemDescription getItemDescription(String itemId) throws StatAlgoImporterServiceException;
|
2019-10-01 17:42:23 +02:00
|
|
|
|
|
|
|
public ServiceInfo getServiceInfo() throws StatAlgoImporterServiceException;
|
2015-11-24 16:22:17 +01:00
|
|
|
}
|