removed unused code

This commit is contained in:
Francesco Mangiacrapa 2022-11-15 14:25:30 +01:00
parent 98e8c19be8
commit 88c6a831d4
3 changed files with 9 additions and 57 deletions

View File

@ -49,7 +49,7 @@ public interface GeoportalDataViewerService extends RemoteService {
* @param maxWFSFeature the max WFS feature * @param maxWFSFeature the max WFS feature
* @param zoomLevel the zoom level * @param zoomLevel the zoom level
* @return the data result * @return the data result
* @throws Exception * @throws Exception the exception
*/ */
List<GeoNaSpatialQueryResult> getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX, List<GeoNaSpatialQueryResult> getDataResult(List<LayerObject> layerObjects, String mapSrsName, BoundsMap mapBBOX,
int maxWFSFeature, double zoomLevel) throws Exception; int maxWFSFeature, double zoomLevel) throws Exception;
@ -61,15 +61,6 @@ public interface GeoportalDataViewerService extends RemoteService {
*/ */
String getMyLogin(); 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. * Gets the geo na data view profile.
* *
@ -78,17 +69,6 @@ public interface GeoportalDataViewerService extends RemoteService {
*/ */
GNADataViewerConfigProfile getGeoNaDataViewProfile() throws Exception; 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<UploadedImageDV> getUploadedImagesForId(String itemType, String itemId, Integer maxImages) throws Exception;
/** /**
* Gets the public links for. * Gets the public links for.
* *
@ -179,6 +159,14 @@ public interface GeoportalDataViewerService extends RemoteService {
*/ */
LinkedHashMap<String, Object> getEntrySetsDocumentForProjectID(String profileID, String projectID, int limit); LinkedHashMap<String, Object> 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<String> getRelationshipsForTimeline(String profileID, String projectID) throws Exception; List<String> getRelationshipsForTimeline(String profileID, String projectID) throws Exception;
} }

View File

@ -46,8 +46,6 @@ public interface GeoportalDataViewerServiceAsync {
void getMyLogin(AsyncCallback<String> callback); void getMyLogin(AsyncCallback<String> callback);
//void getLayerForType(String layerType, AsyncCallback<GeoInformationForWMSRequest> callback);
void getGeoNaDataViewProfile(AsyncCallback<GNADataViewerConfigProfile> callback); void getGeoNaDataViewProfile(AsyncCallback<GNADataViewerConfigProfile> callback);
void getPublicLinksFor(GeoportalItemReferences item, AsyncCallback<GeoportalItemReferences> asyncCallback); void getPublicLinksFor(GeoportalItemReferences item, AsyncCallback<GeoportalItemReferences> asyncCallback);

View File

@ -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. * Gets the geo na data view profile.
* *