diff --git a/.classpath b/.classpath
index e50289f..5c3ac53 100755
--- a/.classpath
+++ b/.classpath
@@ -17,7 +17,11 @@
-
+
+
+
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
index 1c075a8..a931bf8 100755
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -2,4 +2,5 @@ eclipse.preferences.version=1
encoding***REMOVED***src/main/java=UTF-8
encoding***REMOVED***src/main/resources=UTF-8
encoding***REMOVED***src/test/java=UTF-8
+encoding***REMOVED***src/test/resources=UTF-8
encoding/=UTF-8
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index 0da405d..b6b38a3 100755
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -1,5 +1,5 @@
-
+
diff --git a/changelog.xml b/changelog.xml
index b185ddf..51865af 100644
--- a/changelog.xml
+++ b/changelog.xml
@@ -1,4 +1,7 @@
+
+ Updated to new Social Networking API [ticket #19081]
+
Updated to Git and Jenkins
Knime 4.1 added [ticket #18190]
diff --git a/pom.xml b/pom.xml
index bf4371e..07cbb75 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
org.gcube.dataanalysis
dataminer-pool-manager
war
- 2.6.0
+ 2.7.0-SNAPSHOT
dataminer-pool-manager
DataMiner Pool Manager is a service to support the integration of algorithms in D4Science Infrastructure
diff --git a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/clients/configuration/DMPMClientConfiguratorManager.java b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/clients/configuration/DMPMClientConfiguratorManager.java
index 2bd493a..7e4d076 100755
--- a/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/clients/configuration/DMPMClientConfiguratorManager.java
+++ b/src/main/java/org/gcube/dataanalysis/dataminer/poolmanager/clients/configuration/DMPMClientConfiguratorManager.java
@@ -1,7 +1,9 @@
package org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration;
***REMOVED***
+import java.util.ArrayList;
import java.util.Iterator;
+***REMOVED***
import java.util.Properties;
***REMOVED***
@@ -11,105 +13,90 @@ import org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration.Config
***REMOVED***
***REMOVED***
-public class DMPMClientConfiguratorManager
+public class DMPMClientConfiguratorManager ***REMOVED***
***REMOVED***
- private final Logger logger;
private Properties defaultAdmins;
- private String admins;
-
+
static DMPMClientConfiguratorManager instance;
-
- private ScopedCacheMap cacheMap;
-
- private DMPMClientConfiguratorManager ()
- ***REMOVED***
- this.admins = null;
+
+ private ScopedCacheMap cacheMap;
+
+ private DMPMClientConfiguratorManager() ***REMOVED***
this.cacheMap = new ScopedCacheMap();
this.logger = LoggerFactory.getLogger(DMPMClientConfiguratorManager.class);
this.defaultAdmins = new Properties();
-
- try
- ***REMOVED***
+
+ try ***REMOVED***
this.defaultAdmins.load(this.getClass().getResourceAsStream("/default.admins"));
this.logger.debug("Default users successfully loaded");
- ***REMOVED*** catch (Exception e)
- ***REMOVED***
- this.logger.error("Unable to get default users",e);
+ ***REMOVED*** catch (Exception e) ***REMOVED***
+ this.logger.error("Unable to get default users", e);
***REMOVED***
***REMOVED***
-
- private ClientConfigurationCache getCurrentCache ()
- ***REMOVED***
+
+ private ClientConfigurationCache getCurrentCache() ***REMOVED***
String currentScope = ScopeProvider.instance.get();
- this.logger.debug("Current scope = "+currentScope);
+ this.logger.debug("Current scope = " + currentScope);
this.logger.debug("Getting current configuration cache");
ClientConfigurationCache cache = this.cacheMap.get(currentScope);
-
- if (cache == null)
- ***REMOVED***
- this.logger.debug("Cache not created yet, creating...");
- cache = new ClientConfigurationCache ();
- this.cacheMap.put(currentScope, cache);
-
- ***REMOVED***
-
- return cache;
-
-
-***REMOVED***
-
- public static DMPMClientConfiguratorManager getInstance ()
+ if (cache == null) ***REMOVED***
+ this.logger.debug("Cache not created yet, creating...");
+ cache = new ClientConfigurationCache();
+ this.cacheMap.put(currentScope, cache);
+
***REMOVED***
- if (instance == null) instance = new DMPMClientConfiguratorManager();
-
+
+ return cache;
+
+***REMOVED***
+
+ public static DMPMClientConfiguratorManager getInstance() ***REMOVED***
+ if (instance == null)
+ instance = new DMPMClientConfiguratorManager();
+
return instance;
***REMOVED***
-
- public Configuration getProductionConfiguration ()
- ***REMOVED***
+
+ public Configuration getProductionConfiguration() ***REMOVED***
return new ConfigurationImpl(CONFIGURATIONS.PROD, getCurrentCache());
***REMOVED***
-
- public Configuration getStagingConfiguration ()
- ***REMOVED***
+
+ public Configuration getStagingConfiguration() ***REMOVED***
return new ConfigurationImpl(CONFIGURATIONS.STAGE, getCurrentCache());
***REMOVED***
-
- public String getDefaultAdmins ()
- ***REMOVED***
- if (this.admins == null && this.defaultAdmins.isEmpty()) this.admins= "ciro.formisano";
- else if (admins == null)
+
+ public List getDefaultAdmins() ***REMOVED***
+ List admins = new ArrayList();
+
+ if (defaultAdmins == null || defaultAdmins.isEmpty()) ***REMOVED***
+ admins.add("statistical.manager");
+ ***REMOVED*** else ***REMOVED***
+ Iterator