2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
2020-07-07 17:12:10 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2020-02-04 09:44:56 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 18:38:41 +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.facets.EventFacetImpl;
|
|
|
|
|
|
|
|
/**
|
2020-12-21 13:59:53 +01:00
|
|
|
* EventFacet captures information on a certain event/happening characterising the life cycle of the resource.
|
|
|
|
*
|
|
|
|
* Examples of an event are the start time of a virtual machine or the activation time of an electronic service.
|
|
|
|
|
2021-03-02 16:16:35 +01:00
|
|
|
* https://wiki.gcube-system.org/gcube/GCube_Model#Event_Facet
|
2020-12-21 13:59:53 +01:00
|
|
|
*
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2019-03-22 15:51:44 +01:00
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=EventFacetImpl.class)
|
2020-12-15 18:38:41 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = EventFacet.NAME,
|
2021-09-13 12:57:00 +02:00
|
|
|
description = "EventFacet captures information on a certain event/happening characterising the life cycle of the resource. "
|
2020-12-21 13:59:53 +01:00
|
|
|
+ "Examples of an event are the start time of a virtual machine or the activation time of an electronic service.",
|
2020-12-15 18:38:41 +01:00
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:51:44 +01:00
|
|
|
public interface EventFacet extends Facet {
|
|
|
|
|
|
|
|
public static final String NAME = "EventFacet"; // EventFacet.class.getSimpleName();
|
|
|
|
|
2020-02-04 09:44:56 +01:00
|
|
|
@JsonFormat(shape= JsonFormat.Shape.STRING, pattern = Element.DATETIME_PATTERN)
|
2020-12-21 13:59:53 +01:00
|
|
|
@ISProperty(description = "The time the event took place/occurred", mandatory=true, nullable=false)
|
2019-03-22 15:51:44 +01:00
|
|
|
public Date getDate();
|
|
|
|
|
|
|
|
public void setDate(Date date);
|
|
|
|
|
2021-08-04 15:05:25 +02:00
|
|
|
@ISProperty(description = "The typology of event", mandatory=true, nullable=false)
|
|
|
|
public String getEvent();
|
2019-03-22 15:51:44 +01:00
|
|
|
|
2021-08-04 15:05:25 +02:00
|
|
|
public void setEvent(String event);
|
2019-03-22 15:51:44 +01:00
|
|
|
|
2020-12-21 13:59:53 +01:00
|
|
|
}
|