From aa5f8b78de1a9a499ce504a20e04d3ee86b566c5 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 3 Oct 2017 14:06:42 +0000 Subject: [PATCH] Fixed Notification invocation git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@154774 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/social/AlgorithmNotification.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java index 9c56cc7..750552c 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java @@ -27,7 +27,6 @@ import org.gcube.portal.notifications.thread.MessageNotificationsThread; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.SessionUtil; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.InformationSystemUtils; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.util.ServiceCredentials; -import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants; import org.json.JSONArray; import org.json.JSONObject; import org.slf4j.Logger; @@ -78,7 +77,7 @@ public class AlgorithmNotification extends Thread { public void retrieveSocialNetworkingService() { try { socialNetworkingServiceURL = InformationSystemUtils - .retrieveSocialNetworkingService(Constants.DEFAULT_SCOPE); + .retrieveSocialNetworkingService(serviceCredentials.getScope()); logger.info("SocialNetworkingServiceURL: " + socialNetworkingServiceURL); } catch (Throwable e) { logger.error(e.getLocalizedMessage(), e);