diff --git a/pom.xml b/pom.xml
index 3f5882d..be0c842 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
org.gcube.dataAnalysis
dataminer-pool-manager
war
- 2.3.0-SNAPSHOT
+ 2.4.0-SNAPSHOT
dataminer-pool-manager
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 db20641..e9e8de9 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,6 +1,8 @@
package org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration;
import java.io.IOException;
+import java.util.Iterator;
+import java.util.Properties;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.dataanalysis.dataminer.poolmanager.clients.ScopedCacheMap;
@@ -11,15 +13,28 @@ import org.tmatesoft.svn.core.SVNException;
public class DMPMClientConfiguratorManager{
private final Logger logger;
-
+ private Properties defaultAdmins;
+ private String admins;
+
static DMPMClientConfiguratorManager instance;
private ScopedCacheMap cacheMap;
private DMPMClientConfiguratorManager ()
{
+ this.admins = null;
this.cacheMap = new ScopedCacheMap();
this.logger = LoggerFactory.getLogger(DMPMClientConfiguratorManager.class);
+ this.defaultAdmins = new Properties();
+
+ try
+ {
+ this.defaultAdmins.load(this.getClass().getResourceAsStream("/default.admins"));
+ this.logger.debug("Default users successfully loaded");
+ } catch (Exception e)
+ {
+ this.logger.error("Unable to get default users",e);
+ }
}
private ClientConfigurationCache getCurrentCache ()
@@ -60,6 +75,29 @@ public class DMPMClientConfiguratorManager{
return new ConfigurationImpl(CONFIGURATIONS.STAGE, getCurrentCache());
}
+ public String getDefaultAdmins ()
+ {
+ if (this.admins == null && this.defaultAdmins.isEmpty()) this.admins= "ciro.formisano";
+ else if (admins == null)
+ {
+ Iterator