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
This commit is contained in:
parent
73a187b382
commit
6ed9d7eeff
|
@ -90,7 +90,7 @@ public interface CKanUtils {
|
||||||
* @param chosenLicense
|
* @param chosenLicense
|
||||||
* @return the id on success, null otherwise
|
* @return the id on success, null otherwise
|
||||||
*/
|
*/
|
||||||
String findLicenseIdByLicense(String chosenLicense);
|
String findLicenseIdByLicenseTitle(String chosenLicense);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set dataset private
|
* Set dataset private
|
||||||
|
|
|
@ -398,7 +398,7 @@ public class CKanUtilsImpl implements CKanUtils{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String findLicenseIdByLicense(String chosenLicense) {
|
public String findLicenseIdByLicenseTitle(String chosenLicense) {
|
||||||
logger.debug("Requested license id");
|
logger.debug("Requested license id");
|
||||||
|
|
||||||
// checks
|
// checks
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class CkanUtilsFactory {
|
||||||
return cache.get(scope).utils;
|
return cache.get(scope).utils;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
logger.debug("Creating utils for scope " + scope);
|
logger.info("Creating CKAN LIB utils for scope " + scope);
|
||||||
CKanUtilsImpl utils = new CKanUtilsImpl(scope);
|
CKanUtilsImpl utils = new CKanUtilsImpl(scope);
|
||||||
cache.put(scope, new CacheBean(System.currentTimeMillis(), utils));
|
cache.put(scope, new CacheBean(System.currentTimeMillis(), utils));
|
||||||
return utils;
|
return utils;
|
||||||
|
|
Loading…
Reference in New Issue