From f394bf2ff753325ab42fbd10e05554db7aef7860 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 6 Feb 2018 11:02:40 +0000 Subject: [PATCH] fix for Exploited Stocks and Fisheries retrieval git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@162957 82a268e6-3cf1-43bd-a215-b396298e98cf --- .classpath | 4 ++-- .settings/org.eclipse.jdt.core.prefs | 2 +- .../server/manage/GRSFNotificationService.java | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.classpath b/.classpath index 6d95e3a..edad874 100644 --- a/.classpath +++ b/.classpath @@ -27,9 +27,9 @@ - + - + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 6b5aebc..b90405e 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,7 +1,7 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.debug.lineNumber=generate diff --git a/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/server/manage/GRSFNotificationService.java b/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/server/manage/GRSFNotificationService.java index 222e692..7c20105 100644 --- a/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/server/manage/GRSFNotificationService.java +++ b/src/main/java/org/gcube/datacatalogue/grsf_manage_widget/server/manage/GRSFNotificationService.java @@ -273,10 +273,10 @@ public class GRSFNotificationService extends RemoteServiceServlet implements GRS // get the connections the knowledge base suggests List suggestedConnectionsByKnowledgeBase = new ArrayList(0); List exploitedResourcesUrls = isStock ? - (extrasWithoutNamespaces.containsKey(Constants.EXPLOITING_FISHERY_JSON_KEY) ? - extrasWithoutNamespaces.get(Constants.EXPLOITING_FISHERY_JSON_KEY) : null): - (extrasWithoutNamespaces.containsKey(Constants.RESOURCES_EXPLOITED_JSON_KEY) ? - extrasWithoutNamespaces.get(Constants.RESOURCES_EXPLOITED_JSON_KEY) : null); + (extrasWithoutNamespaces.containsKey(Constants.EXPLOITING_FISHERY_CUSTOM_KEY) ? + extrasWithoutNamespaces.get(Constants.EXPLOITING_FISHERY_CUSTOM_KEY) : null): + (extrasWithoutNamespaces.containsKey(Constants.RESOURCES_EXPLOITED_CUSTOM_KEY) ? + extrasWithoutNamespaces.get(Constants.RESOURCES_EXPLOITED_CUSTOM_KEY) : null); if(exploitedResourcesUrls != null && !exploitedResourcesUrls.isEmpty()){ for (String exploited : exploitedResourcesUrls) {