2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
|
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.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.LocationFacetImpl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Location_Facet
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=LocationFacetImpl.class)
|
2020-12-15 18:38:41 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = LocationFacet.NAME,
|
|
|
|
description = "Location information",
|
|
|
|
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 LocationFacet extends Facet {
|
|
|
|
|
|
|
|
public static final String NAME = "LocationFacet"; // LocationFacet.class.getSimpleName();
|
|
|
|
|
|
|
|
@ISProperty
|
|
|
|
public String getCountry();
|
|
|
|
|
|
|
|
public void setCountry(String country);
|
|
|
|
|
|
|
|
@ISProperty
|
|
|
|
public String getLocation();
|
|
|
|
|
|
|
|
public void setLocation(String location);
|
|
|
|
|
|
|
|
@ISProperty()
|
|
|
|
public String getLatitude();
|
|
|
|
|
|
|
|
public void setLatitude(String latitude);
|
|
|
|
|
|
|
|
@ISProperty()
|
|
|
|
public String getLongitude();
|
|
|
|
|
|
|
|
public void setLongitude(String longitude);
|
|
|
|
|
|
|
|
}
|