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;
|
2020-01-16 12:44:10 +01:00
|
|
|
import org.gcube.informationsystem.types.annotations.ResourceSchemaRelatedEntry;
|
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.SiteImpl;
|
2020-01-15 17:26:54 +01:00
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.facets.IdentifierFacet;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.facets.LocationFacet;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.facets.NetworkingFacet;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasContact;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasMaintainer;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasManager;
|
|
|
|
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.Hosts;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsOwnedBy;
|
2019-03-22 15:51:44 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Site
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=SiteImpl.class)
|
2020-01-15 17:26:54 +01:00
|
|
|
@ResourceSchema(
|
|
|
|
facets={
|
|
|
|
@ResourceSchemaEntry(relation=IsIdentifiedBy.class, facet=IdentifierFacet.class, min=1, description="The Site Identifier."),
|
|
|
|
@ResourceSchemaEntry(relation=HasContact.class, facet=ContactFacet.class, min=1, description="The main contact for the Site."),
|
|
|
|
@ResourceSchemaEntry(relation=HasMaintainer.class, facet=ContactFacet.class, min=1, description="Contact information of the maintainer of the Site."),
|
|
|
|
@ResourceSchemaEntry(relation=HasManager.class, facet=ContactFacet.class, min=1, description="Contact information of the Site Manager."),
|
|
|
|
@ResourceSchemaEntry(facet=LocationFacet.class, min=1),
|
|
|
|
@ResourceSchemaEntry(facet=NetworkingFacet.class, min=1),
|
2020-01-16 12:44:10 +01:00
|
|
|
},
|
|
|
|
resources= {
|
|
|
|
@ResourceSchemaRelatedEntry(source=Site.class, relation=IsOwnedBy.class, target=Actor.class),
|
|
|
|
@ResourceSchemaRelatedEntry(source=Site.class, relation=Hosts.class, target=Service.class)
|
2020-01-15 17:26:54 +01:00
|
|
|
}
|
|
|
|
)
|
2020-12-15 20:06:58 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = Site.NAME,
|
|
|
|
description = "An entity representing the location (physical or virtual) hosting and providing the resources associated with it.",
|
|
|
|
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 Site extends GCubeResource {
|
2019-03-22 15:51:44 +01:00
|
|
|
|
|
|
|
public static final String NAME = "Site"; // Site.class.getSimpleName();
|
|
|
|
|
|
|
|
}
|