From 50106016bc31b77508bf6eed1aadd97c37054bcd Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 4 Dec 2018 13:33:50 +0000 Subject: [PATCH] Restored commented code git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174536 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../java/org/gcube/gcat/persistence/ckan/CKANPackage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java index 47a84ea..f430ad9 100644 --- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java +++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANPackage.java @@ -20,6 +20,7 @@ import org.gcube.common.scope.impl.ScopeBean; import org.gcube.common.scope.impl.ScopeBean.Type; import org.gcube.gcat.annotation.PURGE; import org.gcube.gcat.oldutils.Validator; +import org.gcube.gcat.rest.Profile; import org.gcube.gcat.social.SocialService; import org.gcube.gcat.utils.ContextUtility; import org.gcube.gcat.utils.URIResolver; @@ -154,8 +155,7 @@ public class CKANPackage extends CKAN { ObjectNode objectNode = checkBaseInformation(json); // Validating against profiles if any - // List profiles = Profile.getProfilesNames(); TODO RESTORE THIS LINE - List profiles = null; // TODO REMOVE THIS LINE + List profiles = Profile.getProfilesNames(); if(profiles != null && !profiles.isEmpty()) { Validator.validateAgainstProfile(getAsString(objectNode), profiles); }