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

86 lines
3.9 KiB
Java
Raw Normal View History

2020-10-23 18:18:06 +02:00
package org.gcube.portlets.user.geoportaldataviewer.client;
import java.util.LinkedHashMap;
2020-10-29 15:18:14 +01:00
import java.util.List;
2021-12-21 16:52:35 +01:00
import org.gcube.application.geoportalcommon.shared.GNADataViewerConfigProfile;
2022-10-18 17:32:12 +02:00
import org.gcube.application.geoportalcommon.shared.GeoportalItemReferences;
2021-12-07 17:13:20 +01:00
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
import org.gcube.application.geoportalcommon.shared.geoportal.geojson.GeoJSON;
2022-10-18 14:17:41 +02:00
import org.gcube.application.geoportalcommon.shared.geoportal.materialization.GCubeSDIViewerLayerDV;
2022-10-11 15:00:39 +02:00
import org.gcube.application.geoportalcommon.shared.geoportal.view.ProjectView;
import org.gcube.application.geoportalcommon.shared.gis.BoundsMap;
2020-11-19 15:19:27 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.GeoNaSpatialQueryResult;
2022-10-17 16:52:22 +02:00
import org.gcube.portlets.user.geoportaldataviewer.shared.ItemFieldsResponse;
2022-11-28 09:49:46 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.ResultSetPaginatedDataIDs;
import org.gcube.portlets.user.geoportaldataviewer.shared.ViewerConfiguration;
2021-11-12 12:37:15 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.BaseMapLayer;
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.LayerItem;
2020-11-19 15:19:27 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.LayerObject;
import org.gcube.portlets.user.geoportaldataviewer.shared.gis.wms.GeoInformationForWMSRequest;
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
2021-12-22 12:24:03 +01:00
void getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX, int maxWFSFeature,
double zoomLevel, AsyncCallback<List<GeoNaSpatialQueryResult>> callback);
2020-11-19 15:19:27 +01:00
void getMyLogin(AsyncCallback<String> callback);
2021-12-21 16:52:35 +01:00
void getGeoNaDataViewProfile(AsyncCallback<GNADataViewerConfigProfile> callback);
2020-11-19 15:19:27 +01:00
2022-10-18 17:32:12 +02:00
void getPublicLinksFor(GeoportalItemReferences item, AsyncCallback<GeoportalItemReferences> asyncCallback);
2020-11-19 15:19:27 +01:00
void getLayersForId(String theProfileID, String theProductID,
AsyncCallback<List<GCubeSDIViewerLayerDV>> asyncCallback);
2021-07-30 15:57:25 +02:00
2021-08-31 18:21:17 +02:00
void getWFSFeatures(List<LayerObject> layerObjects, String mapSrsName, BoundsMap selectBBOX, int maxWFSFeature,
double zoomLevel, AsyncCallback<List<GeoNaSpatialQueryResult>> callback);
2021-11-12 12:37:15 +01:00
void getListBaseLayers(AsyncCallback<List<BaseMapLayer>> callback);
2022-10-27 16:18:54 +02:00
void getConfigListOfFieldsForSearching(AsyncCallback<List<ItemFieldsResponse>> callback);
2021-12-07 17:13:20 +01:00
2022-10-11 15:00:39 +02:00
void getProjectViewForId(String profileID, String projectID, AsyncCallback<ProjectView> callback);
void getListProjects(String theProfileID, Integer start, Integer limit, SearchingFilter filter,
2022-11-28 09:49:46 +01:00
boolean reloadFromService, AsyncCallback<ResultSetPaginatedDataIDs> callback);
void getInitialConfiguration(AsyncCallback<ViewerConfiguration> callback);
void getEntrySetsDocumentForProjectID(String profileID, String projectID, int limit,
2023-01-17 17:02:23 +01:00
AsyncCallback<LinkedHashMap<String, String>> callback);
2022-11-02 18:05:38 +01:00
void getRelationshipsForTimeline(String profileID, String projectID, AsyncCallback<List<String>> callback);
void getSpatialReference(String profileID, String projectID, AsyncCallback<GeoJSON> callback);
void getWFSRequest(LayerItem layerItem, String mapSrsName, BoundsMap mapBBOX, int maxFeatures, String outputFormat,
AsyncCallback<String> callback);
void getWFSResponse(LayerItem layerItem, String mapSrsName, BoundsMap mapBBOX, int maxFeatures, String outputFormat,
AsyncCallback<String> callback);
2020-10-23 18:18:06 +02:00
}