2020-10-07 17:04:13 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataentry.client;
|
|
|
|
|
2020-10-20 09:58:56 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2020-12-01 18:15:13 +01:00
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
|
2021-12-06 17:24:27 +01:00
|
|
|
import org.gcube.application.geoportalcommon.shared.ResultSetPaginatedData;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
|
2022-09-13 16:18:40 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.geoportal.config.ActionDefinitionDV;
|
2022-09-01 12:44:00 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.geoportal.project.LifecycleInformationDV;
|
2022-09-13 16:18:40 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.geoportal.project.ProjectDV;
|
2022-08-11 12:07:07 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.geoportal.ucd.UseCaseDescriptorDV;
|
2021-09-22 11:38:52 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.ConcessioneDV;
|
2021-10-05 19:17:05 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.content.WorkspaceContentDV;
|
2021-09-29 11:38:24 +02:00
|
|
|
import org.gcube.application.geoportalcommon.shared.products.paths.FileSetPathsDV;
|
2021-08-05 16:49:04 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.client.ConstantsGeoPortalDataEntryApp.RECORD_TYPE;
|
2020-10-21 16:52:07 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport;
|
2021-12-21 16:51:56 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.GNADataEntryExtConfigProfile;
|
2020-10-20 09:58:56 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject;
|
2020-10-21 15:36:50 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.GeonaISConfig;
|
2022-07-08 16:38:45 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataentry.shared.Tree_Node;
|
2021-09-29 18:27:22 +02:00
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.shared.GenericDatasetBean;
|
2020-10-20 09:58:56 +02:00
|
|
|
|
2020-10-07 17:04:13 +02:00
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
2022-09-01 16:43:25 +02:00
|
|
|
/**
|
|
|
|
* The Interface GeoportalDataEntryServiceAsync.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Sep 1, 2022
|
|
|
|
*/
|
2021-12-21 16:51:56 +01:00
|
|
|
public interface GeoportalDataEntryServiceAsync {
|
2020-10-07 17:04:13 +02:00
|
|
|
|
2021-12-21 16:51:56 +01:00
|
|
|
/**
|
|
|
|
* Utility class to get the RPC Async interface from client-side code
|
|
|
|
*/
|
|
|
|
public static final class Util {
|
|
|
|
private static GeoportalDataEntryServiceAsync instance;
|
2020-10-07 17:04:13 +02:00
|
|
|
|
2021-12-21 16:51:56 +01:00
|
|
|
public static final GeoportalDataEntryServiceAsync getInstance() {
|
|
|
|
if (instance == null) {
|
|
|
|
instance = (GeoportalDataEntryServiceAsync) GWT.create(GeoportalDataEntryService.class);
|
|
|
|
}
|
|
|
|
return instance;
|
|
|
|
}
|
2020-10-20 09:58:56 +02:00
|
|
|
|
2021-12-21 16:51:56 +01:00
|
|
|
private Util() {
|
|
|
|
// Utility class should not be instantiated
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 09:58:56 +02:00
|
|
|
|
2022-07-08 16:38:45 +02:00
|
|
|
void saveGeonaDataForms(String profileID, Tree_Node<GeoNaFormDataObject> tree_Node, AsyncCallback<CommitReport> callback);
|
2020-10-21 15:36:50 +02:00
|
|
|
|
|
|
|
void getGeonaInitConfig(AsyncCallback<GeonaISConfig> callback);
|
2020-12-01 18:15:13 +01:00
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
void getLinksFor(String itemId, String profileID, AsyncCallback<GeoNaItemRef> callback);
|
2021-08-04 17:11:46 +02:00
|
|
|
|
2022-05-20 12:31:58 +02:00
|
|
|
void getListProjects(String theProfileID, Integer start, Integer limit, SearchingFilter filter,
|
|
|
|
boolean reloadFromService, AsyncCallback<ResultSetPaginatedData> callback);
|
2021-08-05 16:49:04 +02:00
|
|
|
|
2022-09-01 16:43:25 +02:00
|
|
|
void deleteProject(String profileID, String projectID, AsyncCallback<Boolean> callback);
|
2021-09-16 12:15:07 +02:00
|
|
|
|
2022-09-12 15:09:43 +02:00
|
|
|
void getJSONDocumentInTheProject(String profileID, String projectID, AsyncCallback<String> callback);
|
2021-09-16 12:15:07 +02:00
|
|
|
|
2022-09-14 10:12:07 +02:00
|
|
|
void updateRecord(String profileID, String projectID, String jsonUpdate, AsyncCallback<ProjectDV> callback);
|
2021-09-27 18:32:19 +02:00
|
|
|
|
2021-09-29 11:38:24 +02:00
|
|
|
void readFileSetPaths(AsyncCallback<FileSetPathsDV> callback);
|
2021-09-27 18:32:19 +02:00
|
|
|
|
|
|
|
void getRecord(String itemId, RECORD_TYPE recordType, AsyncCallback<ConcessioneDV> callback);
|
2021-09-29 18:27:22 +02:00
|
|
|
|
|
|
|
void updateSectionForRecord(String itemId, String recordType, String section, int pathIndex,
|
2021-10-05 19:17:05 +02:00
|
|
|
List<WorkspaceContentDV> keepCurrentContent, GenericDatasetBean gDBean,
|
|
|
|
AsyncCallback<ConcessioneDV> callback);
|
2021-11-26 16:05:05 +01:00
|
|
|
|
2021-12-21 16:51:56 +01:00
|
|
|
void readDataViewerConfig(AsyncCallback<GNADataEntryExtConfigProfile> asyncCallback);
|
2021-11-26 16:05:05 +01:00
|
|
|
|
2022-03-17 18:08:58 +01:00
|
|
|
void getListUseCaseDescriptors(List<String> handlersIds, AsyncCallback<List<UseCaseDescriptorDV>> callback);
|
2022-03-03 18:44:21 +01:00
|
|
|
|
2022-09-01 12:44:00 +02:00
|
|
|
void getLifecycleInfoForProjectId(String profileID, String projectID,
|
|
|
|
AsyncCallback<LifecycleInformationDV> callback);
|
|
|
|
|
2022-09-13 16:18:40 +02:00
|
|
|
void performActionSteps(String profileID, String projectID, ActionDefinitionDV action,
|
|
|
|
AsyncCallback<ProjectDV> callback);
|
|
|
|
|
2020-10-07 17:04:13 +02:00
|
|
|
}
|