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
This commit is contained in:
Giancarlo Panichi 2017-10-03 14:06:42 +00:00
parent c8a72f5e07
commit aa5f8b78de
1 changed files with 1 additions and 2 deletions

View File

@ -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.SessionUtil;
import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.InformationSystemUtils; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.is.InformationSystemUtils;
import org.gcube.portlets.user.statisticalalgorithmsimporter.server.util.ServiceCredentials; import org.gcube.portlets.user.statisticalalgorithmsimporter.server.util.ServiceCredentials;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import org.slf4j.Logger; import org.slf4j.Logger;
@ -78,7 +77,7 @@ public class AlgorithmNotification extends Thread {
public void retrieveSocialNetworkingService() { public void retrieveSocialNetworkingService() {
try { try {
socialNetworkingServiceURL = InformationSystemUtils socialNetworkingServiceURL = InformationSystemUtils
.retrieveSocialNetworkingService(Constants.DEFAULT_SCOPE); .retrieveSocialNetworkingService(serviceCredentials.getScope());
logger.info("SocialNetworkingServiceURL: " + socialNetworkingServiceURL); logger.info("SocialNetworkingServiceURL: " + socialNetworkingServiceURL);
} catch (Throwable e) { } catch (Throwable e) {
logger.error(e.getLocalizedMessage(), e); logger.error(e.getLocalizedMessage(), e);