diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java index 76facaa..dececb6 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpSession; import org.gcube.application.framework.core.session.ASLSession; import org.gcube.application.framework.core.session.SessionManager; import org.gcube.common.scope.api.ScopeProvider; -import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsFactory; +import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl; import org.gcube.datacatalogue.ckanutillibrary.models.CkanRolesIntoLiferay; import org.gcube.datacatalogue.ckanutillibrary.models.RolesIntoOrganization; import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; @@ -196,8 +196,8 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem } } - // TODO with this invocation, we check if the role is present in ckan and if it is not it will be added - CKanUtilsFactory.getInstance().getCkanUtilsForScope(currentScope).checkRole(username, groupName, correspondentRoleToCheck); + // with this invocation, we check if the role is present in ckan and if it is not it will be added + new CKanUtilsImpl(currentScope).checkRole(username, groupName, correspondentRoleToCheck); return reMapRole(mainRole);