Restored commented code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174536 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
69e26c0972
commit
50106016bc
|
@ -20,6 +20,7 @@ import org.gcube.common.scope.impl.ScopeBean;
|
||||||
import org.gcube.common.scope.impl.ScopeBean.Type;
|
import org.gcube.common.scope.impl.ScopeBean.Type;
|
||||||
import org.gcube.gcat.annotation.PURGE;
|
import org.gcube.gcat.annotation.PURGE;
|
||||||
import org.gcube.gcat.oldutils.Validator;
|
import org.gcube.gcat.oldutils.Validator;
|
||||||
|
import org.gcube.gcat.rest.Profile;
|
||||||
import org.gcube.gcat.social.SocialService;
|
import org.gcube.gcat.social.SocialService;
|
||||||
import org.gcube.gcat.utils.ContextUtility;
|
import org.gcube.gcat.utils.ContextUtility;
|
||||||
import org.gcube.gcat.utils.URIResolver;
|
import org.gcube.gcat.utils.URIResolver;
|
||||||
|
@ -154,8 +155,7 @@ public class CKANPackage extends CKAN {
|
||||||
ObjectNode objectNode = checkBaseInformation(json);
|
ObjectNode objectNode = checkBaseInformation(json);
|
||||||
|
|
||||||
// Validating against profiles if any
|
// Validating against profiles if any
|
||||||
// List<String> profiles = Profile.getProfilesNames(); TODO RESTORE THIS LINE
|
List<String> profiles = Profile.getProfilesNames();
|
||||||
List<String> profiles = null; // TODO REMOVE THIS LINE
|
|
||||||
if(profiles != null && !profiles.isEmpty()) {
|
if(profiles != null && !profiles.isEmpty()) {
|
||||||
Validator.validateAgainstProfile(getAsString(objectNode), profiles);
|
Validator.validateAgainstProfile(getAsString(objectNode), profiles);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue