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 ;
2020-01-15 17:26:54 +01:00
import org.gcube.informationsystem.types.annotations.ResourceSchema ;
import org.gcube.informationsystem.types.annotations.ResourceSchemaEntry ;
2021-02-18 15:44:45 +01:00
import org.gcube.informationsystem.types.annotations.RelatedResourcesEntry ;
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.SoftwareImpl ;
2020-01-15 17:26:54 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.CapabilityFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet ;
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.Demands ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.DependsOn ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsConfiguredBy ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsPluginOf ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Requires ;
2019-03-22 15:51:44 +01:00
/ * *
2020-12-21 15:43:36 +01:00
* Software is an entity worth being represented for management purposes .
* The relation { @link DependsOn } indicates dependencies between two Software
* captured for management purposes .
*
* Software has similar meaning of D14_Software defined in CRMdig .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#Software
2020-12-21 15:43:36 +01:00
*
* @author Luca Frosini ( ISTI - CNR )
2019-03-22 15:51:44 +01:00
* /
@JsonDeserialize ( as = SoftwareImpl . class )
2020-01-15 17:26:54 +01:00
@ResourceSchema (
facets = {
2021-03-02 15:57:39 +01:00
@ResourceSchemaEntry ( relation = IsIdentifiedBy . class , facet = SoftwareFacet . class , min = 1 , max = 1 , description = " Software coordinates which identify the Software per se. " ) ,
2020-01-15 17:26:54 +01:00
@ResourceSchemaEntry ( facet = SoftwareFacet . class , min = 1 , description = " Apart the one connected by the IsIdentifiedBy relation (gCube coordinates) the others identify the software in other way e.g. (Maven coordinates). " ) ,
@ResourceSchemaEntry ( facet = CapabilityFacet . class )
2020-01-16 12:44:10 +01:00
} ,
resources = {
2021-02-18 15:44:45 +01:00
@RelatedResourcesEntry ( source = Software . class , relation = DependsOn . class , target = Software . class , description = " To capture any dependency between two software artifacts. " ) ,
@RelatedResourcesEntry ( source = Software . class , relation = IsConfiguredBy . class , target = ConfigurationTemplate . class ) ,
@RelatedResourcesEntry ( source = Software . class , relation = Requires . class , target = Service . class , description = " To capture any dependency between a software artifact and a Service, e.g. A software requiring a specific database instance. " ) ,
@RelatedResourcesEntry ( source = VirtualService . class , relation = Demands . class , target = Software . class ) ,
@RelatedResourcesEntry ( source = Plugin . class , relation = IsPluginOf . class , target = Software . class , description = " To capture the relation between a Software and its Plugins. " )
2020-01-15 17:26:54 +01:00
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = Software . NAME ,
2021-09-13 12:57:00 +02:00
description = " Software is an entity worth being represented for management purposes. "
2020-12-21 15:43:36 +01:00
+ " The relation {@link DependsOn} indicates dependencies between two Software captured for management purposes. " ,
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 Software extends GCubeResource {
2019-03-22 15:51:44 +01:00
public static final String NAME = " Software " ; // Software.class.getSimpleName();
}