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 ;
2019-03-22 15:51:44 +01:00
import org.gcube.informationsystem.types.annotations.Abstract ;
2019-12-05 12:04:31 +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.ActorImpl ;
2019-12-05 12:04:31 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactReferenceFacet ;
import org.gcube.resourcemanagement.model.reference.relations.consistsof.HasContact ;
import org.gcube.resourcemanagement.model.reference.relations.consistsof.IsIdentifiedBy ;
2020-12-21 14:56:46 +01:00
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.BelongsTo ;
2020-01-16 12:44:10 +01:00
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Involves ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.IsOwnedBy ;
2019-03-22 15:51:44 +01:00
/ * *
2020-12-21 14:56:46 +01:00
* Actor ( Abstract ) is any entity ( human or machine ) playing an active role in the infrastructure .
* Actor has two specialisations , { @link LegalBody } which represent any legal entity , and
* { @link Person } which is any human playing the role of Actor .
* An Actor can belong to a { @link LegalBody } and this is expressed using the defined
* { @link BelongsTo } relation
*
* Actor has similar meaning of E39_Actor defined in CDOC - CRM .
2020-12-21 15:43:36 +01:00
* Similarly LegalBody and Person have similar meaning of
2020-12-21 14:56:46 +01:00
* E40_Legal_Body and E21_Person respectively .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#Actor
2020-12-21 14:56:46 +01:00
*
* @author Luca Frosini ( ISTI - CNR )
2019-03-22 15:51:44 +01:00
* /
@Abstract
@JsonDeserialize ( as = ActorImpl . class )
2020-01-15 17:26:54 +01:00
@ResourceSchema (
facets = {
2021-03-02 15:57:39 +01:00
@ResourceSchemaEntry ( relation = IsIdentifiedBy . class , facet = ContactFacet . class , min = 1 , max = 1 , description = " An Actor has at least a Contact Facet which permit to identify the Actor per se. " ) ,
2020-01-15 17:26:54 +01:00
@ResourceSchemaEntry ( relation = HasContact . class , facet = ContactFacet . class , description = " An Actor can have other Contact Facets which provide secondary contact information. " ) ,
@ResourceSchemaEntry ( facet = ContactReferenceFacet . class )
2020-01-16 12:44:10 +01:00
} ,
resources = {
2021-02-18 15:44:45 +01:00
@RelatedResourcesEntry ( source = Dataset . class , relation = Involves . class , target = Actor . class ) ,
@RelatedResourcesEntry ( source = Site . class , relation = IsOwnedBy . class , target = Actor . class )
2020-01-15 17:26:54 +01:00
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = Actor . NAME ,
2021-09-13 12:57:00 +02:00
description = " Actor (Abstract) is any entity (human or machine) playing an active role in the infrastructure. "
2020-12-21 14:56:46 +01:00
+ " Actor has two specialisations, {@link LegalBody} which represent any legal entity, "
2021-09-13 12:57:00 +02:00
+ " and {@link Person} which is any human playing the role of Actor. "
2020-12-21 14:56:46 +01:00
+ " An Actor can belong to a {@link LegalBody} and this is expressed using the defined {@link BelongsTo} relation. " ,
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 Actor extends GCubeResource {
2019-03-22 15:51:44 +01:00
public static final String NAME = " Actor " ; // Actor.class.getSimpleName();
}