geoportal-data-viewer-app/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerServiceA...

37 lines
1.3 KiB
Java
Raw Normal View History

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;
import org.gcube.portlets.user.geoportaldataviewer.shared.GeoNaDataObject;
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.BoundsMap;
2020-10-27 16:04:34 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.GeoInformationForWMSRequest;
2020-10-29 15:18:14 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.LayerItem;
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
void getDataResult(List<LayerItem> layerItems, String mapSrsName, BoundsMap mapBBOX, int maxWFSFeature, double zoomLevel,
AsyncCallback<List<GeoNaDataObject>> callback);
2020-10-23 18:18:06 +02:00
}