2019-12-05 12:03:53 +01:00
package org.gcube.resourcemanagement.model.reference.entities.resources ;
import java.util.List ;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnore ;
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize ;
2019-12-05 12:03:53 +01:00
import org.gcube.informationsystem.model.reference.entities.Facet ;
import org.gcube.informationsystem.model.reference.entities.Resource ;
import org.gcube.informationsystem.types.annotations.Abstract ;
import org.gcube.informationsystem.types.annotations.ResourceSchema ;
import org.gcube.informationsystem.types.annotations.ResourceSchemaEntry ;
2020-12-15 20:06:58 +01:00
import org.gcube.informationsystem.types.reference.Change ;
import org.gcube.informationsystem.types.reference.TypeMetadata ;
import org.gcube.informationsystem.utils.TypeVersion ;
2019-12-05 12:03:53 +01:00
import org.gcube.resourcemanagement.model.impl.entities.resources.GCubeResourceImpl ;
import org.gcube.resourcemanagement.model.reference.relations.consistsof.IsIdentifiedBy ;
/ * *
2020-12-21 15:43:36 +01:00
* Marker type for any gCube Resource extended in the gCube model
*
2019-12-05 12:03:53 +01:00
* @author Luca Frosini ( ISTI - CNR )
* /
@Abstract
@JsonDeserialize ( as = GCubeResourceImpl . class )
2020-01-15 17:26:54 +01:00
@ResourceSchema (
facets = {
@ResourceSchemaEntry ( relation = IsIdentifiedBy . class , min = 1 , description = " Any Resource has at least one Facet which in some way allow to identify the Resource per se. " )
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = GCubeResource . NAME ,
2020-12-21 15:43:36 +01:00
description = " Marker type for any gCube Resource extended in the gCube model. " ,
2020-12-15 20:06:58 +01:00
version = TypeVersion . MINIMAL_VERSION_STRING
)
@Change ( version = TypeVersion . MINIMAL_VERSION_STRING , description = TypeVersion . MINIMAL_VERSION_DESCRIPTION )
2019-12-05 12:03:53 +01:00
public interface GCubeResource extends Resource {
public static final String NAME = " GCubeResource " ; // GCubeResource.class.getSimpleName();
@JsonIgnore
public List < ? extends Facet > getIdentificationFacets ( ) ;
}