2019-10-23 16:55:48 +02:00
|
|
|
package org.gcube.informationsystem.base.reference.entities;
|
2019-10-23 15:40:52 +02:00
|
|
|
|
2020-07-07 17:04:25 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
2020-02-03 10:51:29 +01:00
|
|
|
import org.gcube.informationsystem.base.reference.Element;
|
|
|
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
2020-01-20 10:24:55 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.properties.Header;
|
2019-10-23 15:40:52 +02:00
|
|
|
import org.gcube.informationsystem.types.annotations.Abstract;
|
2019-10-24 19:50:43 +02:00
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 11:28:34 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
2021-10-21 10:11:45 +02:00
|
|
|
import org.gcube.informationsystem.utils.Version;
|
2019-10-23 15:40:52 +02:00
|
|
|
|
2021-01-20 17:03:02 +01:00
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
2019-10-23 15:40:52 +02:00
|
|
|
@Abstract
|
|
|
|
@JsonIgnoreProperties(ignoreUnknown=true)
|
2020-01-30 10:26:43 +01:00
|
|
|
//@JsonDeserialize(as=EntityElementImpl.class) Do not uncomment to manage subclasses
|
2021-10-21 10:11:45 +02:00
|
|
|
@TypeMetadata(name = EntityElement.NAME, description = "This is the base class for any EntityElement", version = Version.MINIMAL_VERSION_STRING)
|
|
|
|
@Change(version = Version.MINIMAL_VERSION_STRING, description = Version.MINIMAL_VERSION_DESCRIPTION)
|
2020-02-03 10:51:29 +01:00
|
|
|
public interface EntityElement extends Element, IdentifiableElement {
|
2019-10-23 15:40:52 +02:00
|
|
|
|
2020-01-30 10:26:43 +01:00
|
|
|
public static final String NAME = "EntityElement"; //Entity.class.getSimpleName();
|
2019-10-24 19:50:43 +02:00
|
|
|
|
|
|
|
/* Overriding getHeader method to create Header property in type */
|
|
|
|
@ISProperty(name=HEADER_PROPERTY, mandatory=true, nullable=false)
|
|
|
|
@Override
|
|
|
|
public Header getHeader();
|
2019-10-23 15:40:52 +02:00
|
|
|
|
|
|
|
}
|