From 6ed9d7eeff22163c3a003276276ce485a39feb97 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Mon, 12 Sep 2016 08:39:49 +0000 Subject: [PATCH] Minor fix to getLicenses method git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@131274 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../java/org/gcube/datacatalogue/ckanutillibrary/CKanUtils.java | 2 +- .../org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java | 2 +- .../gcube/datacatalogue/ckanutillibrary/CkanUtilsFactory.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtils.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtils.java index 6fb575c..9f73885 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtils.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtils.java @@ -90,7 +90,7 @@ public interface CKanUtils { * @param chosenLicense * @return the id on success, null otherwise */ - String findLicenseIdByLicense(String chosenLicense); + String findLicenseIdByLicenseTitle(String chosenLicense); /** * Set dataset private diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java index 0fc4418..5b4d0d4 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CKanUtilsImpl.java @@ -398,7 +398,7 @@ public class CKanUtilsImpl implements CKanUtils{ } @Override - public String findLicenseIdByLicense(String chosenLicense) { + public String findLicenseIdByLicenseTitle(String chosenLicense) { logger.debug("Requested license id"); // checks diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CkanUtilsFactory.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CkanUtilsFactory.java index f14069e..5cbceab 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CkanUtilsFactory.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/CkanUtilsFactory.java @@ -65,7 +65,7 @@ public class CkanUtilsFactory { return cache.get(scope).utils; } else{ - logger.debug("Creating utils for scope " + scope); + logger.info("Creating CKAN LIB utils for scope " + scope); CKanUtilsImpl utils = new CKanUtilsImpl(scope); cache.put(scope, new CacheBean(System.currentTimeMillis(), utils)); return utils;