only formatted

This commit is contained in:
Francesco Mangiacrapa 2021-06-04 10:25:59 +02:00
parent 2633d8bdac
commit 7b51c03fe6
1 changed files with 1 additions and 10 deletions

View File

@ -241,10 +241,8 @@ public class DataCatalogueImpl implements DataCatalogue {
List<CkanLicense> licenses = ckanCaller.getLicenseList();
for (CkanLicense ckanLicense : licenses) {
result.add(ckanLicense.getTitle());
LOG.debug("License is " + ckanLicense.getTitle() + " and id " + ckanLicense.getId());
}
return result;
@ -281,13 +279,6 @@ public class DataCatalogueImpl implements DataCatalogue {
return client.getDataset(datasetIdOrName);
}
// String authzToken = SecurityTokenProvider.instance.get();
// if (authzToken != null && !authzToken.isEmpty()) {
// LOG.info("gcube-token found. Calling the gCat client");
// String jsonDataset = gCatCaller.getDatasetForName(datasetId);
// return MarshUnmarshCkanObject.toCkanDataset(jsonDataset, METHOD.TO_READ);
// }
LOG.info("No username found. Calling Ckan Client without API-KEY");
return ckanCaller.getDataset(datasetIdOrName);
@ -1003,7 +994,7 @@ public class DataCatalogueImpl implements DataCatalogue {
maintainer, maintainerMail, version, description, licenseId, tags, null, customFieldsMultiple,
resources, setPublic, setSearchable);
LOG.debug("The visibility into dataset is: "+dataset.isPriv());
LOG.debug("The isPriv property into dataset is: "+dataset.isPriv());
// trying to create by gCat
String jsonValueDataset = MarshUnmarshCkanObject.toJsonValueDataset(dataset,METHOD.TO_CREATE);
LOG.info("Serialized dataset is: " + jsonValueDataset);