Fixed version and added changelog comments

This commit is contained in:
Luca Frosini 2020-12-11 17:34:40 +01:00
parent c6e63b7067
commit 866c730c0d
1 changed files with 18 additions and 2 deletions

View File

@ -3,14 +3,28 @@
*/
package org.gcube.resourcemanagement.model.reference.entities.facets;
import java.util.HashMap;
import java.util.Map;
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.gcube.informationsystem.model.reference.entities.Facet;
import org.gcube.informationsystem.types.annotations.ISProperty;
import org.gcube.informationsystem.types.impl.TypeImpl;
import org.gcube.informationsystem.utils.TypeVersion;
import org.gcube.resourcemanagement.model.impl.entities.facets.IdentifierFacetImpl;
/**
* @author Luca Frosini (ISTI - CNR)
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Identifier_Facet
*
* Changelog (only model changes are logged here. Not implementation details)
*
* - 1.0.1 Added STRING in IdentificationType
* OrientDB Schema requires this changes
* - ALTER PROPERTY IdentifierFacet.type REGEXP '^(URI|DOI|IRI|URL|URN|UUID|STRING)$'
* - UPDATE FacetType SET properties=.... WHERE name='IdentifierFacet'
* - 1.0.0 First version
*
*/
@JsonDeserialize(as=IdentifierFacetImpl.class)
public interface IdentifierFacet extends Facet {
@ -18,7 +32,9 @@ public interface IdentifierFacet extends Facet {
public static final String NAME = "IdentifierFacet"; // IdentifierFacet.class.getSimpleName();
public static final String DESCRIPTION = "This facet collects "
+ "information on Identifiers that can be attached to a resource. ";
public static final String VERSION = "1.0.0";
public static final String VERSION = "1.0.1";
public static final String VALUE_PROPERTY = "value";
public static final String TYPE_PROPERTY = "type";