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

155 lines
4.7 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;
2021-12-21 16:52:35 +01:00
import org.gcube.application.geoportalcommon.shared.GNADataViewerConfigProfile;
import org.gcube.application.geoportalcommon.shared.GeoNaItemRef;
2021-12-07 17:13:20 +01:00
import org.gcube.application.geoportalcommon.shared.ItemField;
import org.gcube.application.geoportalcommon.shared.ResultSetPaginatedData;
import org.gcube.application.geoportalcommon.shared.SearchingFilter;
import org.gcube.application.geoportalcommon.shared.gis.BoundsMap;
import org.gcube.application.geoportalcommon.shared.products.ConcessioneDV;
import org.gcube.application.geoportalcommon.shared.products.model.LayerConcessioneDV;
import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV;
2020-11-19 15:19:27 +01:00
import org.gcube.portlets.user.geoportaldataviewer.shared.GeoNaSpatialQueryResult;
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;
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)
*
* 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
* @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.
*
* @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
* @param zoomLevel the zoom level
2020-11-19 15:19:27 +01:00
* @return the data result
*/
List<GeoNaSpatialQueryResult> getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX,
2020-10-29 15:18:14 +01:00
int maxWFSFeature, double zoomLevel);
2020-11-19 15:19:27 +01:00
/**
* Gets the concessione for id.
*
* @param mongoId the mongo id
2020-11-19 15:19:27 +01:00
* @return the concessione for id
* @throws Exception the exception
*/
ConcessioneDV getConcessioneForId(String mongoId) throws Exception;
2020-11-19 15:19:27 +01:00
/**
* Gets the my login.
*
* @return the my login
*/
String getMyLogin();
/**
* 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;
/**
* 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
/**
* Gets the uploaded images for id.
*
2021-12-22 12:24:03 +01:00
* @param itemType the item type
* @param itemId the item id
2020-11-19 15:19:27 +01:00
* @param maxImages the max images
* @return the uploaded images for id
2021-12-22 12:24:03 +01:00
* @throws Exception
2020-11-19 15:19:27 +01:00
*/
2021-09-07 17:29:56 +02:00
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
*/
GeoNaItemRef getPublicLinksFor(GeoNaItemRef item) throws Exception;
2021-07-30 15:57:25 +02:00
/**
* Gets the layers for id.
*
2021-12-22 12:24:03 +01:00
* @param itemType the item type
* @param itemId the item id
2021-07-30 15:57:25 +02:00
* @return the layers for id
* @throws Exception the exception
*/
List<LayerConcessioneDV> getLayersForId(String itemType, String itemId) throws Exception;
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);
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
2021-12-22 12:24:03 +01:00
* @throws Exception
2021-12-07 17:13:20 +01:00
*/
2021-12-21 16:52:35 +01:00
List<ItemField> listOfFieldsForSearching() throws Exception;
2021-12-07 17:13:20 +01:00
/**
* Gets the list concessioni.
*
* @param start the start
* @param limit the limit
* @param filter the filter
* @param reloadFromService the reload from service
* @return the list concessioni
* @throws Exception the exception
*/
ResultSetPaginatedData getListConcessioni(Integer start, Integer limit, SearchingFilter filter,
boolean reloadFromService) throws Exception;
2020-10-23 18:18:06 +02:00
}