2020-10-23 18:18:06 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataviewer.client;
|
|
|
|
|
2022-10-25 17:01:24 +02:00
|
|
|
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.ResultSetPaginatedData;
|
|
|
|
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
|
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;
|
2021-08-02 15:20:01 +02:00
|
|
|
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-10-13 16:53:33 +02:00
|
|
|
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;
|
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;
|
2020-10-27 16:04:34 +01:00
|
|
|
|
2020-10-23 18:18:06 +02:00
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The client side stub for the RPC service.
|
2020-11-19 15:19:27 +01:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
|
|
|
|
*
|
2021-07-30 14:57:08 +02:00
|
|
|
* Nov 17, 2020
|
2020-10-23 18:18:06 +02:00
|
|
|
*/
|
2020-10-26 12:24:23 +01:00
|
|
|
@RemoteServiceRelativePath("geoportaldataviewerservice")
|
|
|
|
public interface GeoportalDataViewerService extends RemoteService {
|
2020-10-27 16:04:34 +01:00
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
/**
|
|
|
|
* Parses the wms request.
|
|
|
|
*
|
|
|
|
* @param wmsRequest the wms request
|
2021-07-30 14:57:08 +02:00
|
|
|
* @param layerName the layer name
|
2020-11-19 15:19:27 +01:00
|
|
|
* @return the geo information for WMS request
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
2020-10-27 16:04:34 +01:00
|
|
|
GeoInformationForWMSRequest parseWmsRequest(String wmsRequest, String layerName) throws Exception;
|
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
/**
|
|
|
|
* Gets the data result.
|
|
|
|
*
|
2021-07-30 14:57:08 +02:00
|
|
|
* @param layerObjects the layer objects
|
|
|
|
* @param mapSrsName the map srs name
|
|
|
|
* @param mapBBOX the map BBOX
|
2020-11-19 15:19:27 +01:00
|
|
|
* @param maxWFSFeature the max WFS feature
|
2021-07-30 14:57:08 +02:00
|
|
|
* @param zoomLevel the zoom level
|
2020-11-19 15:19:27 +01:00
|
|
|
* @return the data result
|
2022-11-09 15:25:00 +01:00
|
|
|
* @throws Exception
|
2020-11-19 15:19:27 +01:00
|
|
|
*/
|
|
|
|
List<GeoNaSpatialQueryResult> getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX,
|
2022-10-25 17:01:24 +02:00
|
|
|
int maxWFSFeature, double zoomLevel) throws Exception;
|
2020-10-29 15:18:14 +01:00
|
|
|
|
2020-11-19 15:19:27 +01:00
|
|
|
/**
|
|
|
|
* Gets the my login.
|
|
|
|
*
|
|
|
|
* @return the my login
|
|
|
|
*/
|
|
|
|
String getMyLogin();
|
|
|
|
|
2022-11-14 17:01:28 +01:00
|
|
|
// /**
|
|
|
|
// * Gets the layer for type.
|
|
|
|
// *
|
|
|
|
// * @param layerType the layer type
|
|
|
|
// * @return the layer for type
|
|
|
|
// * @throws Exception the exception
|
|
|
|
// */
|
|
|
|
// GeoInformationForWMSRequest getLayerForType(String layerType) throws Exception;
|
2020-11-19 15:19:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the geo na data view profile.
|
|
|
|
*
|
|
|
|
* @return the geo na data view profile
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
2021-12-21 16:52:35 +01:00
|
|
|
GNADataViewerConfigProfile getGeoNaDataViewProfile() throws Exception;
|
2020-11-19 15:19:27 +01:00
|
|
|
|
2022-11-09 15:25:00 +01:00
|
|
|
// /**
|
|
|
|
// * Gets the uploaded images for id.
|
|
|
|
// *
|
|
|
|
// * @param itemType the item type
|
|
|
|
// * @param itemId the item id
|
|
|
|
// * @param maxImages the max images
|
|
|
|
// * @return the uploaded images for id
|
|
|
|
// * @throws Exception the exception
|
|
|
|
// */
|
|
|
|
// List<UploadedImageDV> getUploadedImagesForId(String itemType, String itemId, Integer maxImages) throws Exception;
|
2020-11-19 15:19:27 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the public links for.
|
|
|
|
*
|
|
|
|
* @param item the item
|
|
|
|
* @return the public links for
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
2022-10-18 17:32:12 +02:00
|
|
|
GeoportalItemReferences getPublicLinksFor(GeoportalItemReferences item) throws Exception;
|
2020-11-19 15:19:27 +01:00
|
|
|
|
2021-07-30 15:57:25 +02:00
|
|
|
/**
|
|
|
|
* Gets the layers for id.
|
|
|
|
*
|
2022-10-18 14:17:41 +02:00
|
|
|
* @param theProfileID the the profile ID
|
|
|
|
* @param theProductID the the product ID
|
2021-07-30 15:57:25 +02:00
|
|
|
* @return the layers for id
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
2022-10-18 14:17:41 +02:00
|
|
|
List<GCubeSDIViewerLayerDV> getLayersForId(String theProfileID, String theProductID) throws Exception;
|
2021-07-30 15:57:25 +02:00
|
|
|
|
2021-08-31 18:21:17 +02:00
|
|
|
/**
|
|
|
|
* Gets the WFS features.
|
|
|
|
*
|
|
|
|
* @param layerObjects the layer objects
|
|
|
|
* @param mapSrsName the map srs name
|
|
|
|
* @param selectBBOX the select BBOX
|
|
|
|
* @param maxWFSFeature the max WFS feature
|
|
|
|
* @param zoomLevel the zoom level
|
|
|
|
* @return the WFS features
|
|
|
|
*/
|
|
|
|
List<GeoNaSpatialQueryResult> getWFSFeatures(List<LayerObject> layerObjects, String mapSrsName,
|
|
|
|
BoundsMap selectBBOX, int maxWFSFeature, double zoomLevel);
|
|
|
|
|
2022-10-18 14:17:41 +02:00
|
|
|
/**
|
|
|
|
* Gets the list base layers.
|
|
|
|
*
|
|
|
|
* @return the list base layers
|
|
|
|
*/
|
2021-11-12 12:37:15 +01:00
|
|
|
List<BaseMapLayer> getListBaseLayers();
|
|
|
|
|
2021-12-07 17:13:20 +01:00
|
|
|
/**
|
|
|
|
* List of fields for searching.
|
|
|
|
*
|
|
|
|
* @return the list
|
2022-10-18 14:17:41 +02:00
|
|
|
* @throws Exception the exception
|
2021-12-07 17:13:20 +01:00
|
|
|
*/
|
2022-10-27 16:18:54 +02:00
|
|
|
List<ItemFieldsResponse> getConfigListOfFieldsForSearching() throws Exception;
|
2022-10-12 17:12:09 +02:00
|
|
|
|
2022-10-11 15:00:39 +02:00
|
|
|
/**
|
|
|
|
* Gets the project view for id.
|
|
|
|
*
|
|
|
|
* @param profileID the profile ID
|
|
|
|
* @param projectID the project ID
|
|
|
|
* @return the project view for id
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
|
|
|
ProjectView getProjectViewForId(String profileID, String projectID) throws Exception;
|
|
|
|
|
2022-10-12 17:12:09 +02:00
|
|
|
/**
|
|
|
|
* Gets the list projects.
|
|
|
|
*
|
|
|
|
* @param theProfileID the the profile ID
|
|
|
|
* @param start the start
|
|
|
|
* @param limit the limit
|
|
|
|
* @param filter the filter
|
|
|
|
* @param reloadFromService the reload from service
|
|
|
|
* @return the list projects
|
|
|
|
* @throws Exception the exception
|
|
|
|
*/
|
|
|
|
ResultSetPaginatedData getListProjects(String theProfileID, Integer start, Integer limit, SearchingFilter filter,
|
|
|
|
boolean reloadFromService) throws Exception;
|
|
|
|
|
2022-10-13 16:53:33 +02:00
|
|
|
/**
|
2022-10-18 14:17:41 +02:00
|
|
|
* NEW CODE HERE.
|
|
|
|
*
|
|
|
|
* @return the initial configuration
|
|
|
|
* @throws Exception the exception
|
2022-10-13 16:53:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
ViewerConfiguration getInitialConfiguration() throws Exception;
|
|
|
|
|
2022-10-25 17:01:24 +02:00
|
|
|
/**
|
|
|
|
* Gets the entry sets document for project ID.
|
|
|
|
*
|
|
|
|
* @param profileID the profile ID
|
|
|
|
* @param projectID the project ID
|
|
|
|
* @param limit the limit
|
|
|
|
* @return the entry sets document for project ID
|
|
|
|
*/
|
|
|
|
LinkedHashMap<String, Object> getEntrySetsDocumentForProjectID(String profileID, String projectID, int limit);
|
|
|
|
|
2022-11-02 18:05:38 +01:00
|
|
|
List<String> getRelationshipsForTimeline(String profileID, String projectID) throws Exception;
|
|
|
|
|
2020-10-23 18:18:06 +02:00
|
|
|
}
|