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

41 lines
1.8 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.IsOwnedByImpl;
import org.gcube.resourcemanagement.model.reference.entities.resources.Actor;
import org.gcube.resourcemanagement.model.reference.entities.resources.Site;
/**
2020-12-22 15:31:40 +01:00
* Any {@link Site} is owned by an {@link Actor} and this is captured by the IsOwnedBy relation.
* The referenced {@link Actor} can be used as a contact point during an emergency,
* to agree on the scheduling of a site downtime and to request additional resources
* during the downtime of another site.
2020-12-22 15:09:55 +01:00
*
* https://wiki.gcube-system.org/gcube/GCube_Model#IsOwnedBy
2020-12-21 14:56:46 +01:00
*
* @author Luca Frosini (ISTI - CNR)
*/
@JsonDeserialize(as=IsOwnedByImpl.class)
@TypeMetadata(
2020-12-22 15:09:55 +01:00
name = IsOwnedBy.NAME,
2021-09-13 12:57:00 +02:00
description = "Any {@link Site} is owned by an {@link Actor} and this is captured by the IsOwnedBy relation. "
2020-12-22 15:31:40 +01:00
+ "The referenced {@link Actor} can be used as a contact point during an emergency, "
+ "to agree on the scheduling of a site downtime and to request additional resources "
+ "during the downtime of another site.",
version = TypeVersion.MINIMAL_VERSION_STRING
)
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
public interface IsOwnedBy<Out extends Site, In extends Actor>
extends IsRelatedTo<Out, In> {
public static final String NAME = "IsOwnedBy"; // IsOwnedBy.class.getSimpleName();
}