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

63 lines
2.1 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;
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;
import org.gcube.portlets.user.geoportaldataentry.shared.GeoNaFormDataObject;
import org.gcube.portlets.user.geoportaldataentry.shared.GeonaISConfig;
import org.gcube.portlets.user.geoportaldataentry.shared.ResultSetPaginatedData;
import org.gcube.portlets.user.geoportaldataentry.shared.SortFilter;
2020-10-07 17:04:13 +02:00
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
2020-10-22 16:50:14 +02:00
public interface GeoportalDataEntryServiceAsync
2020-10-07 17:04:13 +02:00
{
/**
* Utility class to get the RPC Async interface from client-side code
*/
public static final class Util
{
2020-10-22 16:50:14 +02:00
private static GeoportalDataEntryServiceAsync instance;
2020-10-07 17:04:13 +02:00
2020-10-22 16:50:14 +02:00
public static final GeoportalDataEntryServiceAsync getInstance()
2020-10-07 17:04:13 +02:00
{
if ( instance == null )
{
2020-10-22 16:50:14 +02:00
instance = (GeoportalDataEntryServiceAsync) GWT.create( GeoportalDataEntryService.class );
2020-10-07 17:04:13 +02:00
}
return instance;
}
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, SortFilter 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);
void updateRecord(String itemId, String jsonUpdate, RECORD_TYPE recordType, AsyncCallback<String> callback);
2020-10-07 17:04:13 +02:00
}