From 88c6a831d4f24404791e618b22e9d01a84cdb2d0 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 15 Nov 2022 14:25:30 +0100 Subject: [PATCH] removed unused code --- .../client/GeoportalDataViewerService.java | 30 +++++----------- .../GeoportalDataViewerServiceAsync.java | 2 -- .../GeoportalDataViewerServiceImpl.java | 34 ------------------- 3 files changed, 9 insertions(+), 57 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerService.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerService.java index 837c552..3e30683 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerService.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerService.java @@ -49,7 +49,7 @@ public interface GeoportalDataViewerService extends RemoteService { * @param maxWFSFeature the max WFS feature * @param zoomLevel the zoom level * @return the data result - * @throws Exception + * @throws Exception the exception */ List getDataResult(List layerObjects, String mapSrsName, BoundsMap mapBBOX, int maxWFSFeature, double zoomLevel) throws Exception; @@ -61,15 +61,6 @@ public interface GeoportalDataViewerService extends RemoteService { */ 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. * @@ -78,17 +69,6 @@ public interface GeoportalDataViewerService extends RemoteService { */ GNADataViewerConfigProfile getGeoNaDataViewProfile() throws Exception; -// /** -// * 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 getUploadedImagesForId(String itemType, String itemId, Integer maxImages) throws Exception; - /** * Gets the public links for. * @@ -179,6 +159,14 @@ public interface GeoportalDataViewerService extends RemoteService { */ LinkedHashMap getEntrySetsDocumentForProjectID(String profileID, String projectID, int limit); + /** + * Gets the relationships for timeline. + * + * @param profileID the profile ID + * @param projectID the project ID + * @return the relationships for timeline + * @throws Exception the exception + */ List getRelationshipsForTimeline(String profileID, String projectID) throws Exception; } diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerServiceAsync.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerServiceAsync.java index 7fdc3ea..63bd285 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerServiceAsync.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/client/GeoportalDataViewerServiceAsync.java @@ -46,8 +46,6 @@ public interface GeoportalDataViewerServiceAsync { void getMyLogin(AsyncCallback callback); - //void getLayerForType(String layerType, AsyncCallback callback); - void getGeoNaDataViewProfile(AsyncCallback callback); void getPublicLinksFor(GeoportalItemReferences item, AsyncCallback asyncCallback); diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java index 2160e75..362ef4f 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalDataViewerServiceImpl.java @@ -282,40 +282,6 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme } } -// /** -// * Gets the layer for type. -// * -// * @param layerType the layer type -// * @return the layer for type -// * @throws Exception the exception -// */ -// @Override -// public GeoInformationForWMSRequest getLayerForType(String layerType) throws Exception { -// LOG.info("Called getLayerForType for:" + layerType); -// -// if (layerType == null || layerType.isEmpty()) -// throw new Exception("The input parameter layerType is null or empty"); -// -// SessionUtil.getCurrentContext(this.getThreadLocalRequest(), true); -// -// GNADataViewerConfigProfile profile = getGNADataVieweConfigProfile(); -// LOG.info("Read profile: " + profile); -// -// String lowerLayerType = layerType.toLowerCase(); -// LOG.info("Reading map layers for type:" + lowerLayerType); -// LayerItem layer = profile.getMapLayers().get(lowerLayerType); -// -// if (layer == null || layer.getWmsLink() == null) -// throw new Exception( -// "The layer type " + lowerLayerType + " has not been found. Please check your input parameter"); -// -// if (layer.getWmsLink() == null) -// throw new Exception("The layer type " + lowerLayerType -// + " has not a WMS Link associated. Please check your input parameter"); -// -// return parseWmsRequest(layer.getWmsLink(), null); -// } - /** * Gets the geo na data view profile. *