2020-10-23 18:18:06 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataviewer.client;
|
|
|
|
|
2020-10-29 15:18:14 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2020-12-02 14:39:52 +01:00
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaDataViewerProfile;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
|
2020-11-19 15:19:27 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.GeoNaSpatialQueryResult;
|
2020-10-29 15:18:14 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.BoundsMap;
|
2020-11-19 15:19:27 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.LayerObject;
|
2020-11-03 13:09:08 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.GeoInformationForWMSRequest;
|
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.products.ConcessioneDV;
|
2021-07-30 15:57:25 +02:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.products.model.LayerConcessioneDV;
|
2020-11-19 15:19:27 +01:00
|
|
|
import org.gcube.portlets.user.geoportaldataviewer.shared.products.model.UploadedImageDV;
|
2020-10-27 16:04:34 +01:00
|
|
|
|
2020-10-23 18:18:06 +02:00
|
|
|
import com.google.gwt.core.client.GWT;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
2020-10-27 16:41:30 +01:00
|
|
|
public interface GeoportalDataViewerServiceAsync {
|
|
|
|
/**
|
|
|
|
* Utility class to get the RPC Async interface from client-side code
|
|
|
|
*/
|
|
|
|
public static final class Util {
|
|
|
|
private static GeoportalDataViewerServiceAsync instance;
|
|
|
|
|
|
|
|
public static final GeoportalDataViewerServiceAsync getInstance() {
|
|
|
|
if (instance == null) {
|
|
|
|
instance = (GeoportalDataViewerServiceAsync) GWT.create(GeoportalDataViewerService.class);
|
|
|
|
}
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
private Util() {
|
|
|
|
// Utility class should not be instantiated
|
|
|
|
}
|
|
|
|
}
|
2020-10-27 16:04:34 +01:00
|
|
|
|
|
|
|
void parseWmsRequest(String wmsRequest, String layerName, AsyncCallback<GeoInformationForWMSRequest> callback);
|
2020-10-29 15:18:14 +01:00
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
void getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX, int maxWFSFeature, double zoomLevel,
|
|
|
|
AsyncCallback<List<GeoNaSpatialQueryResult>> callback);
|
2020-11-03 13:09:08 +01:00
|
|
|
|
2021-07-30 14:57:08 +02:00
|
|
|
void getConcessioneForId(String mongoId, AsyncCallback<ConcessioneDV> callback);
|
2020-11-19 15:19:27 +01:00
|
|
|
|
|
|
|
void getMyLogin(AsyncCallback<String> callback);
|
|
|
|
|
|
|
|
void getLayerForType(String layerType, AsyncCallback<GeoInformationForWMSRequest> callback);
|
|
|
|
|
|
|
|
void getGeoNaDataViewProfile(AsyncCallback<GeoNaDataViewerProfile> callback);
|
|
|
|
|
2021-07-30 14:57:08 +02:00
|
|
|
void getUploadedImagesForId(String itemType, String itemId, int maxImages, AsyncCallback<List<UploadedImageDV>> callback);
|
2020-11-19 15:19:27 +01:00
|
|
|
|
|
|
|
void getPublicLinksFor(GeoNaItemRef item, AsyncCallback<GeoNaItemRef> asyncCallback);
|
|
|
|
|
2021-07-30 15:57:25 +02:00
|
|
|
void getLayersForId(String itemType, String itemId,
|
|
|
|
AsyncCallback<List<LayerConcessioneDV>> asyncCallback);
|
|
|
|
|
2020-10-23 18:18:06 +02:00
|
|
|
}
|