scope retrieved from asl and no longer from scopeprovider
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129468 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9fd1fad7cd
commit
18deeed31a
|
@ -16,7 +16,6 @@ import org.gcube.common.homelibrary.home.workspace.Workspace;
|
||||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||||
import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
|
import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
|
||||||
import org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem;
|
import org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl;
|
import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean;
|
import org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.models.RolesIntoOrganization;
|
import org.gcube.datacatalogue.ckanutillibrary.models.RolesIntoOrganization;
|
||||||
|
@ -72,7 +71,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
||||||
if(instance == null){
|
if(instance == null){
|
||||||
// retrieve ckan information
|
// retrieve ckan information
|
||||||
try{
|
try{
|
||||||
String currentScope = ScopeProvider.instance.get();
|
String currentScope = getASLSession().getScope();
|
||||||
logger.debug("Scope is " + currentScope);
|
logger.debug("Scope is " + currentScope);
|
||||||
instance = new CKanUtilsImpl(currentScope);
|
instance = new CKanUtilsImpl(currentScope);
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
|
Loading…
Reference in New Issue