2016-10-08 20:46:17 +02:00
|
|
|
package org.gcube.data_catalogue.grsf_publish_ws.json.input;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-26 18:40:10 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2016-11-01 22:35:52 +01:00
|
|
|
import javax.validation.Valid;
|
2016-12-01 22:41:24 +01:00
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import javax.validation.constraints.Size;
|
2016-10-13 11:46:42 +02:00
|
|
|
|
2016-10-08 23:10:25 +02:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.custom_annotations.CustomField;
|
2016-10-08 20:46:17 +02:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.custom_annotations.Group;
|
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.custom_annotations.Tag;
|
2016-12-01 23:21:37 +01:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.custom_annotations.TimeSeries;
|
2016-11-04 16:26:19 +01:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Abundance_Level;
|
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Exploitation_Rate;
|
2016-11-30 18:29:44 +01:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Stock_Type;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-26 18:40:10 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
2016-10-07 18:23:23 +02:00
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A stock record bean
|
|
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
|
|
*/
|
2016-10-26 18:40:10 +02:00
|
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
2016-12-01 22:20:46 +01:00
|
|
|
public class StockRecord extends Common{
|
2016-12-01 15:37:26 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("stock_name")
|
2016-12-01 22:41:24 +01:00
|
|
|
@NotNull(message="stock_name cannot be null")
|
|
|
|
@Size(min=2, message="stock_name cannot be empty")
|
2016-10-14 18:44:34 +02:00
|
|
|
@CustomField(key="Stock Name")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String stockName;
|
|
|
|
|
|
|
|
@JsonProperty("stock_id")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Stock Id")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String stockID;
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
@JsonProperty("species")
|
|
|
|
@CustomField(key="Species")
|
2016-10-08 20:46:17 +02:00
|
|
|
@Tag
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> species;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-12 16:30:52 +02:00
|
|
|
@JsonProperty("assessment_distribution_area")
|
|
|
|
@CustomField(key="Assessment distribution area")
|
2017-02-15 15:11:45 +01:00
|
|
|
@Tag
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> area;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("exploiting_fishery")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Exploiting fishery")
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> exploitingFishery;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("management_entity")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Management entity")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String managementEntity;
|
|
|
|
|
|
|
|
@JsonProperty("assessment_methods")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Assessment methods")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String assessmentMethods;
|
|
|
|
|
|
|
|
@JsonProperty("state_of_marine_resource")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="State of marine resources")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String stateOfMarineResource;
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
@JsonProperty("standard_exploitation_rate")
|
|
|
|
@CustomField(key="Standard Exploitation Rate")
|
2017-02-15 15:11:45 +01:00
|
|
|
//@Tag
|
2016-12-01 23:21:37 +01:00
|
|
|
@TimeSeries
|
2016-12-01 15:37:26 +01:00
|
|
|
@Valid
|
|
|
|
private List<TimeSeriesBean<Exploitation_Rate, Void>> exploitationRateStandard;
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("exploitation_rate")
|
2016-11-04 16:26:19 +01:00
|
|
|
@CustomField(key="Exploitation Rate")
|
2016-12-01 23:21:37 +01:00
|
|
|
@TimeSeries
|
2016-12-01 15:37:26 +01:00
|
|
|
@Valid
|
|
|
|
private List<TimeSeriesBean<String, String>> exploitationRate;
|
|
|
|
|
|
|
|
@JsonProperty("standard_abundance_level")
|
|
|
|
@CustomField(key="Standard Abundance Level")
|
2017-02-15 15:11:45 +01:00
|
|
|
//@Tag
|
2016-12-01 23:21:37 +01:00
|
|
|
@TimeSeries
|
2016-11-01 22:35:52 +01:00
|
|
|
@Valid
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<TimeSeriesBean<Abundance_Level, Void>> abundanceLevelStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("abundance_level")
|
2016-11-04 16:26:19 +01:00
|
|
|
@CustomField(key="Abundance Level")
|
2016-12-01 23:21:37 +01:00
|
|
|
@TimeSeries
|
2016-11-01 22:35:52 +01:00
|
|
|
@Valid
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<TimeSeriesBean<String, String>> abundanceLevel;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("narrative_state_and_trend")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Narrative state and trend")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String narrativeStateAndTrend;
|
|
|
|
|
|
|
|
@JsonProperty("scientific_advice")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Scientific advice")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String scientificAdvice;
|
|
|
|
|
2017-02-15 15:11:45 +01:00
|
|
|
@JsonProperty("assessor")
|
|
|
|
@CustomField(key="Assessor")
|
|
|
|
@Tag
|
|
|
|
private String assessor;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-26 18:40:10 +02:00
|
|
|
@JsonProperty("stock_uri")
|
|
|
|
@CustomField(key="Stock Uri")
|
|
|
|
private String stockUri;
|
|
|
|
|
|
|
|
@JsonProperty("water_area")
|
|
|
|
@CustomField(key="Water Area")
|
2017-02-15 15:11:45 +01:00
|
|
|
@Tag
|
2016-11-04 16:26:19 +01:00
|
|
|
private List<String> waterArea;
|
2016-12-01 15:37:26 +01:00
|
|
|
|
2016-11-25 18:25:23 +01:00
|
|
|
@JsonProperty("type")
|
|
|
|
@CustomField(key="Type")
|
2017-02-15 16:34:49 +01:00
|
|
|
//@Tag
|
2016-11-25 18:25:23 +01:00
|
|
|
@Group
|
2016-11-30 18:29:44 +01:00
|
|
|
private Stock_Type type;
|
2016-11-01 22:35:52 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
public StockRecord() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-11-06 21:21:11 +01:00
|
|
|
* Create a Stock element.
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param stockName
|
|
|
|
* @param stockID
|
2016-12-01 15:37:26 +01:00
|
|
|
* @param species
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param area
|
|
|
|
* @param exploitingFishery
|
|
|
|
* @param managementEntity
|
|
|
|
* @param assessmentMethods
|
|
|
|
* @param stateOfMarineResource
|
2016-12-01 15:37:26 +01:00
|
|
|
* @param exploitationRateStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param exploitationRate
|
2016-12-01 15:37:26 +01:00
|
|
|
* @param abundanceLevelStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param abundanceLevel
|
|
|
|
* @param narrativeStateAndTrend
|
|
|
|
* @param scientificAdvice
|
|
|
|
* @param reportingEntity
|
|
|
|
* @param reportingYear
|
2016-10-26 18:40:10 +02:00
|
|
|
* @param stockUri
|
|
|
|
* @param waterArea
|
2016-11-25 18:25:23 +01:00
|
|
|
* @param type
|
2016-10-07 18:23:23 +02:00
|
|
|
*/
|
2016-12-01 15:37:26 +01:00
|
|
|
public StockRecord(
|
|
|
|
String stockName,
|
|
|
|
String stockID,
|
|
|
|
List<String> species,
|
|
|
|
List<String> area,
|
|
|
|
List<String> exploitingFishery,
|
|
|
|
String managementEntity,
|
|
|
|
String assessmentMethods,
|
|
|
|
String stateOfMarineResource,
|
|
|
|
List<TimeSeriesBean<Exploitation_Rate, Void>> exploitationRateStandard,
|
|
|
|
List<TimeSeriesBean<String, String>> exploitationRate,
|
|
|
|
List<TimeSeriesBean<Abundance_Level, Void>> abundanceLevelStandard,
|
|
|
|
List<TimeSeriesBean<String, String>> abundanceLevel,
|
2016-10-07 18:23:23 +02:00
|
|
|
String narrativeStateAndTrend, String scientificAdvice,
|
2017-02-15 15:11:45 +01:00
|
|
|
String assessor, Long reportingYear, String stockUri,
|
2016-11-30 18:29:44 +01:00
|
|
|
List<String> waterArea, Stock_Type type) {
|
2016-10-07 18:23:23 +02:00
|
|
|
super();
|
|
|
|
this.stockName = stockName;
|
|
|
|
this.stockID = stockID;
|
2016-12-01 15:37:26 +01:00
|
|
|
this.species = species;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.area = area;
|
|
|
|
this.exploitingFishery = exploitingFishery;
|
|
|
|
this.managementEntity = managementEntity;
|
|
|
|
this.assessmentMethods = assessmentMethods;
|
|
|
|
this.stateOfMarineResource = stateOfMarineResource;
|
2016-12-01 15:37:26 +01:00
|
|
|
this.exploitationRateStandard = exploitationRateStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.exploitationRate = exploitationRate;
|
2016-12-01 15:37:26 +01:00
|
|
|
this.abundanceLevelStandard = abundanceLevelStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.abundanceLevel = abundanceLevel;
|
|
|
|
this.narrativeStateAndTrend = narrativeStateAndTrend;
|
|
|
|
this.scientificAdvice = scientificAdvice;
|
2017-02-15 15:11:45 +01:00
|
|
|
this.assessor = assessor;
|
2016-10-26 18:40:10 +02:00
|
|
|
this.stockUri = stockUri;
|
|
|
|
this.waterArea = waterArea;
|
2016-11-25 18:25:23 +01:00
|
|
|
this.type = type;
|
|
|
|
}
|
2016-12-01 15:37:26 +01:00
|
|
|
|
2016-11-30 18:29:44 +01:00
|
|
|
public Stock_Type getType() {
|
2016-11-25 18:25:23 +01:00
|
|
|
return type;
|
2016-10-26 18:40:10 +02:00
|
|
|
}
|
|
|
|
|
2016-11-30 18:29:44 +01:00
|
|
|
public void setType(Stock_Type type) {
|
2016-11-25 18:25:23 +01:00
|
|
|
this.type = type;
|
|
|
|
}
|
2016-11-04 16:26:19 +01:00
|
|
|
|
2016-10-26 18:40:10 +02:00
|
|
|
public String getStockUri() {
|
|
|
|
return stockUri;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStockUri(String stockUri) {
|
|
|
|
this.stockUri = stockUri;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getWaterArea() {
|
|
|
|
return waterArea;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWaterArea(List<String> waterArea) {
|
|
|
|
this.waterArea = waterArea;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getStockName() {
|
|
|
|
return stockName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStockName(String stockName) {
|
|
|
|
this.stockName = stockName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getStockID() {
|
|
|
|
return stockID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStockID(String stockID) {
|
|
|
|
this.stockID = stockID;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<String> getSpecies() {
|
|
|
|
return species;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setSpecies(List<String> species) {
|
|
|
|
this.species = species;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<String> getArea() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return area;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setArea(List<String> area) {
|
2016-10-07 18:23:23 +02:00
|
|
|
this.area = area;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<String> getExploitingFishery() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return exploitingFishery;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setExploitingFishery(List<String> exploitingFishery) {
|
2016-10-07 18:23:23 +02:00
|
|
|
this.exploitingFishery = exploitingFishery;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getManagementEntity() {
|
|
|
|
return managementEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setManagementEntity(String managementEntity) {
|
|
|
|
this.managementEntity = managementEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAssessmentMethods() {
|
|
|
|
return assessmentMethods;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAssessmentMethods(String assessmentMethods) {
|
|
|
|
this.assessmentMethods = assessmentMethods;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getStateOfMarineResource() {
|
|
|
|
return stateOfMarineResource;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStateOfMarineResource(String stateOfMarineResource) {
|
|
|
|
this.stateOfMarineResource = stateOfMarineResource;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<TimeSeriesBean<Exploitation_Rate, Void>> getExploitationRateStandard() {
|
|
|
|
return exploitationRateStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setExploitationRateStandard(
|
|
|
|
List<TimeSeriesBean<Exploitation_Rate, Void>> exploitationRateStandard) {
|
|
|
|
this.exploitationRateStandard = exploitationRateStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<TimeSeriesBean<Abundance_Level, Void>> getAbundanceLevelStandard() {
|
|
|
|
return abundanceLevelStandard;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAbundanceLevelStandard(
|
|
|
|
List<TimeSeriesBean<Abundance_Level, Void>> abundanceLevelStandard) {
|
|
|
|
this.abundanceLevelStandard = abundanceLevelStandard;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<TimeSeriesBean<String, String>> getAbundanceLevel() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return abundanceLevel;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setAbundanceLevel(
|
|
|
|
List<TimeSeriesBean<String, String>> abundanceLevel) {
|
2016-10-07 18:23:23 +02:00
|
|
|
this.abundanceLevel = abundanceLevel;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getNarrativeStateAndTrend() {
|
|
|
|
return narrativeStateAndTrend;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNarrativeStateAndTrend(String narrativeStateAndTrend) {
|
|
|
|
this.narrativeStateAndTrend = narrativeStateAndTrend;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getScientificAdvice() {
|
|
|
|
return scientificAdvice;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setScientificAdvice(String scientificAdvice) {
|
|
|
|
this.scientificAdvice = scientificAdvice;
|
|
|
|
}
|
|
|
|
|
2017-02-15 15:11:45 +01:00
|
|
|
public String getAssessor() {
|
|
|
|
return assessor;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-02-15 15:11:45 +01:00
|
|
|
public void setAssessor(String assessor) {
|
|
|
|
this.assessor = assessor;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
2016-12-01 19:19:22 +01:00
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<TimeSeriesBean<String, String>> getExploitationRate() {
|
|
|
|
return exploitationRate;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setExploitationRate(
|
|
|
|
List<TimeSeriesBean<String, String>> exploitationRate) {
|
|
|
|
this.exploitationRate = exploitationRate;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
2016-12-08 21:57:08 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2016-11-25 18:25:23 +01:00
|
|
|
return "StockRecord [stockName=" + stockName + ", stockID=" + stockID
|
2016-12-01 15:37:26 +01:00
|
|
|
+ ", species=" + species + ", area=" + area
|
|
|
|
+ ", exploitingFishery=" + exploitingFishery
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", managementEntity=" + managementEntity
|
|
|
|
+ ", assessmentMethods=" + assessmentMethods
|
|
|
|
+ ", stateOfMarineResource=" + stateOfMarineResource
|
2016-12-01 15:37:26 +01:00
|
|
|
+ ", exploitationRateStandard=" + exploitationRateStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", exploitationRate=" + exploitationRate
|
2016-12-01 15:37:26 +01:00
|
|
|
+ ", abundanceLevelStandard=" + abundanceLevelStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", abundanceLevel=" + abundanceLevel
|
2016-12-01 15:37:26 +01:00
|
|
|
+ ", narrativeStateAndTrend=" + narrativeStateAndTrend
|
|
|
|
+ ", scientificAdvice=" + scientificAdvice
|
2017-02-15 15:11:45 +01:00
|
|
|
+ ", assessor=" + assessor + ", stockUri="
|
2016-12-01 15:37:26 +01:00
|
|
|
+ stockUri + ", waterArea=" + waterArea + ", type=" + type
|
|
|
|
+ "]";
|
2016-11-25 18:25:23 +01:00
|
|
|
}
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|