gcube-model/src/main/java/org/gcube/resourcemanagement/model/reference/relations/isrelatedto/Enables.java

47 lines
2.3 KiB
Java
Raw Normal View History

/**
*
*/
package org.gcube.resourcemanagement.model.reference.relations.isrelatedto;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.gcube.informationsystem.model.reference.relations.IsRelatedTo;
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.relations.isrelatedto.EnablesImpl;
2020-12-22 15:09:55 +01:00
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
import org.gcube.resourcemanagement.model.reference.entities.resources.Plugin;
import org.gcube.resourcemanagement.model.reference.entities.resources.RunningPlugin;
import org.gcube.resourcemanagement.model.reference.entities.resources.Service;
import org.gcube.resourcemanagement.model.reference.entities.resources.Software;
/**
2020-12-22 15:09:55 +01:00
* Any {@link Service} representing running code of a specific software has the relation
* Enables targeted to the corresponding {@link Software}.
* Enables is used for example by {@link EService} to indicates the running software;
* from {@link HostingNode} to indicate the running software container;
* within {@link RunningPlugin} and the software represented as {@link Plugin}.
*
* https://wiki.gcube-system.org/gcube/GCube_Model#Enables
2020-12-21 14:56:46 +01:00
*
* @author Luca Frosini (ISTI - CNR)
*/
@JsonDeserialize(as=EnablesImpl.class)
@TypeMetadata(
2020-12-22 15:09:55 +01:00
name = Enables.NAME,
description = "Any {@link Service} representing running code of a specific software has the "
2021-09-13 12:57:00 +02:00
+ "relation Enables targeted to the corresponding {@link Software}. "
2020-12-22 15:09:55 +01:00
+ "Enables is used for example by {@link EService} to indicates the running software; "
+ "from {@link HostingNode} to indicate the running software container; "
+ "within {@link RunningPlugin} and the software represented as {@link Plugin}.",
version = TypeVersion.MINIMAL_VERSION_STRING
)
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
public interface Enables<Out extends Service, In extends Software>
extends IsRelatedTo<Out, In> {
2021-01-19 14:42:07 +01:00
public static final String NAME = "Enables"; // Runs.class.getSimpleName();
}