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

67 lines
2.8 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;
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;
2021-08-05 16:49:04 +02:00
import org.gcube.portlets.user.geoportaldataentry.client.ConstantsGeoPortalDataEntryApp.RECORD_TYPE;
import org.gcube.portlets.user.geoportaldataentry.shared.CommitReport;
2021-12-21 16:51:56 +01:00
import org.gcube.portlets.user.geoportaldataentry.shared.GNADataEntryExtConfigProfile;
import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject;
import org.gcube.portlets.user.geoportaldataentry.shared.GeonaISConfig;
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;
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
}
}
void saveGeonaDataForms(List<GeoNaFormDataObject> listGeonaFormObjects, AsyncCallback<CommitReport> callback);
void getGeonaInitConfig(AsyncCallback<GeonaISConfig> callback);
2020-12-01 18:15:13 +01:00
2021-08-05 16:49:04 +02:00
void getLinksFor(String itemId, RECORD_TYPE recordType, AsyncCallback<GeoNaItemRef> callback);
2021-08-04 17:11:46 +02:00
void getListConcessioni(Integer start, Integer limit, SearchingFilter filter, boolean reloadFromService,
AsyncCallback<ResultSetPaginatedData> callback);
2021-08-05 16:49:04 +02:00
void deleteRecord(String itemId, RECORD_TYPE recordType, AsyncCallback<Boolean> callback);
void getJSONRecord(String itemId, RECORD_TYPE recordType, AsyncCallback<String> callback);
2021-09-22 11:38:52 +02:00
void updateRecord(String itemId, String jsonUpdate, RECORD_TYPE recordType, AsyncCallback<ConcessioneDV> callback);
2021-09-27 18:32:19 +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-12-21 16:51:56 +01:00
void readDataViewerConfig(AsyncCallback<GNADataEntryExtConfigProfile> asyncCallback);
2020-10-07 17:04:13 +02:00
}