gcube-model/src/main/java/org/gcube/resourcemanagement/model/reference/entities/facets/SubjectFacet.java

40 lines
1.6 KiB
Java
Raw Normal View History

/**
*
*/
package org.gcube.resourcemanagement.model.reference.entities.facets;
2020-07-07 17:12:10 +02:00
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.reference.Change;
import org.gcube.informationsystem.types.reference.TypeMetadata;
import org.gcube.informationsystem.utils.TypeVersion;
import org.gcube.resourcemanagement.model.impl.entities.facets.SubjectFacetImpl;
2020-12-21 14:24:06 +01:00
import org.gcube.resourcemanagement.model.reference.properties.ValueSchema;
/**
2020-12-21 14:24:06 +01:00
* SubjectFacet captures information on subjects associated with the resource for
* description, classification and discovery purposes.
*
* https://wiki.gcube-system.org/gcube/GCube_Model#Subject_Facet
2020-12-21 14:24:06 +01:00
*
* @author Luca Frosini (ISTI - CNR)
*/
@JsonDeserialize(as=SubjectFacetImpl.class)
@TypeMetadata(
name = SubjectFacet.NAME,
2020-12-21 14:24:06 +01:00
description = "SubjectFacet captures information on subjects associated with "
+ "the resource for description, classification and discovery purposes.",
version = TypeVersion.MINIMAL_VERSION_STRING
)
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
public interface SubjectFacet extends Facet {
public static final String NAME = "SubjectFacet"; // SubjectFacet.class.getSimpleName();
2020-12-21 14:24:06 +01:00
@ISProperty(description = "The value of the subject according to the schema", mandatory=true, nullable=false)
public ValueSchema getSubject();
2020-12-21 14:24:06 +01:00
public void setSubject(ValueSchema subject);
2020-12-21 14:24:06 +01:00
}