geoportal-data-entry-app/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoportalDataEntryServiceAs...

99 lines
4.4 KiB
Java
Raw Normal View History

2020-10-07 17:04:13 +02:00
package org.gcube.portlets.user.geoportaldataentry.client;
import java.util.List;
2020-12-01 18:15:13 +01:00
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
import org.gcube.application.geoportalcommon.shared.ResultSetPaginatedData;
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
import org.gcube.application.geoportalcommon.shared.geoportal.ResultDocumentDV;
2022-09-13 16:18:40 +02:00
import org.gcube.application.geoportalcommon.shared.geoportal.config.ActionDefinitionDV;
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-10-03 17:52:16 +02:00
import org.gcube.application.geoportalcommon.shared.geoportal.ucd.RelationshipDefinitionDV;
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;
import org.gcube.application.geoportalcommon.shared.products.paths.FileSetPathsDV;
import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport;
import org.gcube.portlets.user.geoportaldataentry.shared.GNADataEntryExtendedConfigProfile;
import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject;
import org.gcube.portlets.user.geoportaldataentry.shared.GeoportalISConfig;
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-07 17:04:13 +02:00
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* The Interface GeoportalDataEntryServiceAsync.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
2022-09-23 15:40:11 +02:00
* 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;
}
2021-12-21 16:51:56 +01:00
private Util() {
// Utility class should not be instantiated
}
}
2022-09-23 15:40:11 +02:00
void saveGeonaDataForms(String profileID, Tree_Node<GeoNaFormDataObject> tree_Node,
AsyncCallback<CommitReport> callback);
void getGeonaInitConfig(AsyncCallback<GeoportalISConfig> 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
void deleteProject(String profileID, String projectID, AsyncCallback<Boolean> callback);
void getJSONDocumentInTheProject(String profileID, String projectID, AsyncCallback<String> callback);
void updateRecord(String profileID, String projectID, String jsonUpdate, AsyncCallback<ProjectDV> callback);
2021-09-27 18:32:19 +02:00
void readFileSetPaths(AsyncCallback<FileSetPathsDV> callback);
2021-09-27 18:32:19 +02:00
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);
void readDataViewerConfig(AsyncCallback<GNADataEntryExtendedConfigProfile> asyncCallback);
void getListUseCaseDescriptors(List<String> handlersIds, AsyncCallback<List<UseCaseDescriptorDV>> callback);
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);
2022-10-03 17:52:16 +02:00
void getRelationshipsDefinition(String profileID, AsyncCallback<List<RelationshipDefinitionDV>> callback);
2022-10-03 17:52:16 +02:00
void createRelationship(String fromProfileID, String fromProjectID, String relationshipID, String toProfileID,
String toProjectID, AsyncCallback<Void> callback);
2022-09-21 10:52:56 +02:00
void getProjectByID(String profileID, String projectID, AsyncCallback<ProjectDV> callback);
void getResultDocumentFoProjectByID(String profileID, String projectID, AsyncCallback<ResultDocumentDV> callback);
void deleteRelationship(String fromProfileID, String fromProjectID, String id, String toProfileID,
String toProjectID, AsyncCallback<ResultDocumentDV> asyncCallback);
2020-10-07 17:04:13 +02:00
}