commented code which does not compile due to new gcube-model

This commit is contained in:
Luca Frosini 2021-02-09 17:12:42 +01:00
parent 826a990b42
commit 51b76c89e6
1 changed files with 4 additions and 0 deletions

View File

@ -102,11 +102,13 @@ public class ResourceRegistryProfile {
protected Configuration instantiateConfiguration(String name, String xml) throws Exception { protected Configuration instantiateConfiguration(String name, String xml) throws Exception {
Configuration configuration = new ConfigurationImpl(); Configuration configuration = new ConfigurationImpl();
/*
IdentifierFacet identifierFacet = new IdentifierFacetImpl(); IdentifierFacet identifierFacet = new IdentifierFacetImpl();
identifierFacet.setValue(name); identifierFacet.setValue(name);
identifierFacet.setType(IdentificationType.STRING); identifierFacet.setType(IdentificationType.STRING);
IsIdentifiedBy<Configuration, IdentifierFacet> isIdentifiedBy = new IsIdentifiedByImpl<Configuration, IdentifierFacet>(configuration, identifierFacet); IsIdentifiedBy<Configuration, IdentifierFacet> isIdentifiedBy = new IsIdentifiedByImpl<Configuration, IdentifierFacet>(configuration, identifierFacet);
configuration.addFacet(isIdentifiedBy); configuration.addFacet(isIdentifiedBy);
*/
SimpleFacet profile = new SimpleFacetImpl(); SimpleFacet profile = new SimpleFacetImpl();
profile.setAdditionalProperty(PROFILE, xml); profile.setAdditionalProperty(PROFILE, xml);
@ -116,10 +118,12 @@ public class ResourceRegistryProfile {
schemaFacet.setName("gCube Item Profile"); schemaFacet.setName("gCube Item Profile");
schemaFacet.setDescription("gCube Metadata Profile defines a Metadata schema XML-based for adding custom metadata fields."); schemaFacet.setDescription("gCube Metadata Profile defines a Metadata schema XML-based for adding custom metadata fields.");
/*
ValueSchema valueSchema = new ValueSchemaImpl(); ValueSchema valueSchema = new ValueSchemaImpl();
valueSchema.setSchema(SCHEMA_URL.toURI()); valueSchema.setSchema(SCHEMA_URL.toURI());
valueSchema.setValue(DataCalogueMetadataFormatReader.getProfileSchemaString()); valueSchema.setValue(DataCalogueMetadataFormatReader.getProfileSchemaString());
schemaFacet.setSchema(valueSchema); schemaFacet.setSchema(valueSchema);
*/
configuration.addFacet(schemaFacet); configuration.addFacet(schemaFacet);