2019-03-22 15:51:44 +01:00
/ * *
*
* /
package org.gcube.resourcemanagement.model.reference.entities.resources ;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize ;
2021-03-02 15:06:08 +01:00
import org.gcube.informationsystem.types.annotations.RelatedResourcesEntry ;
2019-12-05 12:04:31 +01:00
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-03-22 15:51:44 +01:00
import org.gcube.resourcemanagement.model.impl.entities.resources.ConfigurationTemplateImpl ;
2019-12-05 12:04:31 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.IdentifierFacet ;
import org.gcube.resourcemanagement.model.reference.relations.consistsof.IsIdentifiedBy ;
2020-01-16 12:44:10 +01:00
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsConfiguredBy ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsCustomizedBy ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsDerivationOf ;
2019-03-22 15:51:44 +01:00
/ * *
2020-12-21 15:43:36 +01:00
* Configuration Template represents a template for a configuration .
* It describes how a configuration has to be realised ,
* e . g . used to define the catalogue configuration parameters template .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#Configuration_Template
2020-12-21 15:43:36 +01:00
*
* @author Luca Frosini ( ISTI - CNR )
2019-03-22 15:51:44 +01:00
* /
@JsonDeserialize ( as = ConfigurationTemplateImpl . class )
2020-01-15 17:26:54 +01:00
@ResourceSchema (
facets = {
2021-03-02 15:57:39 +01:00
@ResourceSchemaEntry ( relation = IsIdentifiedBy . class , facet = IdentifierFacet . class , min = 1 , max = 1 )
2020-01-16 12:44:10 +01:00
} ,
resources = {
2021-02-18 15:44:45 +01:00
@RelatedResourcesEntry ( source = Configuration . class , relation = IsDerivationOf . class , target = ConfigurationTemplate . class ) ,
@RelatedResourcesEntry ( source = Service . class , relation = IsCustomizedBy . class , target = ConfigurationTemplate . class ) ,
@RelatedResourcesEntry ( source = Software . class , relation = IsConfiguredBy . class , target = ConfigurationTemplate . class ) ,
2020-01-15 17:26:54 +01:00
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = ConfigurationTemplate . NAME ,
2020-12-21 15:43:36 +01:00
description = " Configuration Template represents a template for a configuration. It describes how a configuration has to be realised, e.g. used to define the catalogue configuration parameters template. " ,
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:04:31 +01:00
public interface ConfigurationTemplate extends GCubeResource {
2019-03-22 15:51:44 +01:00
public static final String NAME = " ConfigurationTemplate " ; //ConfigurationTemplate.class.getSimpleName();
}