minor fix

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129809 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-07-02 21:58:36 +00:00
parent b2b8dc97d5
commit f00498b4b0
1 changed files with 4 additions and 3 deletions

View File

@ -16,6 +16,7 @@ import org.gcube.common.homelibrary.home.workspace.Workspace;
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.items.GCubeItem;
import org.gcube.datacatalogue.ckanutillibrary.CKanUtils;
import org.gcube.datacatalogue.ckanutillibrary.CKanUtilsImpl;
import org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean;
import org.gcube.datacatalogue.ckanutillibrary.models.RolesIntoOrganization;
@ -70,7 +71,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
* Since it needs the scope, we need to check if it is null or not
* @return
*/
private CKanUtilsImpl getCkanUtilsObj(){
private CKanUtils getCkanUtilsObj(){
if(instance == null){
synchronized(LOCK){
@ -169,7 +170,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
List<String> orgsName = new ArrayList<String>();
ASLSession session = getASLSession();
CKanUtilsImpl ckanUtils = getCkanUtilsObj();
CKanUtils ckanUtils = getCkanUtilsObj();
if(session.getAttribute(CKAN_ORGANIZATIONS_PUBLISH_KEY) != null){
orgsName = (List<String>)session.getAttribute(CKAN_ORGANIZATIONS_PUBLISH_KEY);
@ -486,7 +487,7 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
ASLSession aslSession = getASLSession();
String user = aslSession.getUsername();
CKanUtilsImpl utils = getCkanUtilsObj();
CKanUtils utils = getCkanUtilsObj();
try{