36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.resourcemanagement.model.reference.entities.resources;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
import org.gcube.informationsystem.types.annotations.ResourceSchema;
|
|
import org.gcube.informationsystem.types.annotations.ResourceSchemaRelatedEntry;
|
|
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.entities.resources.PersonImpl;
|
|
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.BelongsTo;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Person
|
|
*/
|
|
@JsonDeserialize(as = PersonImpl.class)
|
|
@ResourceSchema(
|
|
resources = {
|
|
@ResourceSchemaRelatedEntry(source = Person.class, relation = BelongsTo.class, target = LegalBody.class)
|
|
}
|
|
)
|
|
@TypeMetadata(
|
|
name = Person.NAME,
|
|
description = "Any human playing the role of Actor.",
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
)
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
|
public interface Person extends Actor {
|
|
|
|
public static final String NAME = "Person"; // Person.class.getSimpleName();
|
|
|
|
}
|