moved to factory
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@130935 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7ae547f2c4
commit
fe7800faba
|
@ -43,6 +43,7 @@ import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashItem;
|
|||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CKanUtils;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl;
|
||||
import org.gcube.datacatalogue.ckanutillibrary.CkanUtilsFactory;
|
||||
import org.gcube.portlets.user.workspace.client.ConstantsExplorer;
|
||||
import org.gcube.portlets.user.workspace.client.interfaces.GXTCategoryItemInterface;
|
||||
import org.gcube.portlets.user.workspace.client.model.FileDetailsModel;
|
||||
|
@ -3412,7 +3413,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
try{
|
||||
String scopeInWhichDiscover = (scope != null && !scope.isEmpty()) ? scope : asl.getScope();
|
||||
workspaceLogger.debug("Discovering ckan instance into scope " + scopeInWhichDiscover);
|
||||
instance = new CKanUtilsImpl(scopeInWhichDiscover);
|
||||
instance = CkanUtilsFactory.getFactory().getUtilsPerScope(scopeInWhichDiscover);
|
||||
}catch(Exception e){
|
||||
workspaceLogger.error("Unable to retrieve ckan utils", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue