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;
|
2017-07-06 13:53:15 +02:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Fishing_Pressure;
|
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")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="GRSF Name")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String stockName;
|
|
|
|
|
|
|
|
@JsonProperty("stock_id")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="GRSF Semantic identifier")
|
2017-02-19 16:40:19 +01:00
|
|
|
private String stockId;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-12 16:30:52 +02:00
|
|
|
@JsonProperty("assessment_distribution_area")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Assessment Area")
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> area;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("exploiting_fishery")
|
2017-07-27 16:45:18 +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")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Management Body/Authority(ies)")
|
2017-02-17 18:05:41 +01:00
|
|
|
@Tag
|
2016-10-07 18:23:23 +02:00
|
|
|
private String managementEntity;
|
|
|
|
|
|
|
|
@JsonProperty("assessment_methods")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Assessment Methods")
|
2017-06-30 15:32:38 +02:00
|
|
|
private List<String> assessmentMethods;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
@JsonProperty("standard_abundance_level")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Abundance Level (FIRMS Standard)")
|
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
|
|
|
|
2017-05-24 16:53:31 +02:00
|
|
|
@JsonProperty("standard_fishing_pressure")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Fishing Pressure (FIRMS Standard)")
|
2017-05-24 16:53:31 +02:00
|
|
|
@TimeSeries
|
|
|
|
@Valid
|
2017-07-06 13:53:15 +02:00
|
|
|
private List<TimeSeriesBean<Fishing_Pressure, Void>> fishingPressureStandard;
|
2017-05-24 16:53:31 +02:00
|
|
|
|
|
|
|
@JsonProperty("fishing_pressure")
|
|
|
|
@CustomField(key="Fishing Pressure")
|
|
|
|
@TimeSeries
|
|
|
|
@Valid
|
|
|
|
private List<TimeSeriesBean<String, String>> fishingPressure;
|
|
|
|
|
2017-06-30 15:32:38 +02:00
|
|
|
@JsonProperty("narrative_state")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="State and trend of Marine Resource")
|
2017-07-13 11:50:05 +02:00
|
|
|
@TimeSeries
|
|
|
|
@Valid
|
2017-06-30 15:32:38 +02:00
|
|
|
private List<TimeSeriesBean<String, Void>> narrativeState;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2017-07-13 11:50:05 +02:00
|
|
|
@JsonProperty("fao_state")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="Fao Categories")
|
2017-07-13 11:50:05 +02:00
|
|
|
@TimeSeries
|
|
|
|
@Valid
|
|
|
|
private List<TimeSeriesBean<String, Void>> faoState;
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("scientific_advice")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Scientific advice")
|
2017-07-13 11:50:05 +02:00
|
|
|
private List<String> scientificAdvice;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
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-11-25 18:25:23 +01:00
|
|
|
@JsonProperty("type")
|
2017-07-27 16:45:18 +02:00
|
|
|
@CustomField(key="GRSF Type")
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param stockName
|
2017-06-30 15:32:38 +02:00
|
|
|
* @param stockId
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param area
|
|
|
|
* @param exploitingFishery
|
|
|
|
* @param managementEntity
|
|
|
|
* @param assessmentMethods
|
2016-12-01 15:37:26 +01:00
|
|
|
* @param abundanceLevelStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param abundanceLevel
|
2017-06-30 15:32:38 +02:00
|
|
|
* @param fishingPressureStandard
|
|
|
|
* @param fishingPressure
|
|
|
|
* @param narrativeState
|
2017-07-13 11:50:05 +02:00
|
|
|
* @param faoState
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param scientificAdvice
|
2017-06-30 15:32:38 +02:00
|
|
|
* @param assessor
|
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,
|
2017-02-19 16:40:19 +01:00
|
|
|
String stockId,
|
2016-12-01 15:37:26 +01:00
|
|
|
List<String> area,
|
|
|
|
List<String> exploitingFishery,
|
|
|
|
String managementEntity,
|
2017-06-30 15:32:38 +02:00
|
|
|
List<String> assessmentMethods,
|
2016-12-01 15:37:26 +01:00
|
|
|
List<TimeSeriesBean<Abundance_Level, Void>> abundanceLevelStandard,
|
|
|
|
List<TimeSeriesBean<String, String>> abundanceLevel,
|
2017-07-06 13:53:15 +02:00
|
|
|
List<TimeSeriesBean<Fishing_Pressure, Void>> fishingPressureStandard,
|
2017-06-30 15:32:38 +02:00
|
|
|
List<TimeSeriesBean<String, String>> fishingPressure,
|
|
|
|
List<TimeSeriesBean<String, Void>> narrativeState,
|
2017-07-13 11:50:05 +02:00
|
|
|
List<TimeSeriesBean<String, Void>> faoState,
|
2017-07-27 16:45:18 +02:00
|
|
|
List<String> scientificAdvice, String assessor, Stock_Type type) {
|
2016-10-07 18:23:23 +02:00
|
|
|
super();
|
|
|
|
this.stockName = stockName;
|
2017-02-19 16:40:19 +01:00
|
|
|
this.stockId = stockId;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.area = area;
|
|
|
|
this.exploitingFishery = exploitingFishery;
|
|
|
|
this.managementEntity = managementEntity;
|
|
|
|
this.assessmentMethods = assessmentMethods;
|
2016-12-01 15:37:26 +01:00
|
|
|
this.abundanceLevelStandard = abundanceLevelStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.abundanceLevel = abundanceLevel;
|
2017-06-30 15:32:38 +02:00
|
|
|
this.fishingPressureStandard = fishingPressureStandard;
|
|
|
|
this.fishingPressure = fishingPressure;
|
|
|
|
this.narrativeState = narrativeState;
|
2017-07-13 11:50:05 +02:00
|
|
|
this.faoState = faoState;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.scientificAdvice = scientificAdvice;
|
2017-02-15 15:11:45 +01:00
|
|
|
this.assessor = assessor;
|
2016-11-25 18:25:23 +01:00
|
|
|
this.type = type;
|
|
|
|
}
|
2016-12-01 15:37:26 +01:00
|
|
|
|
2017-06-30 15:32:38 +02:00
|
|
|
public void setAssessmentMethods(List<String> assessmentMethods) {
|
|
|
|
this.assessmentMethods = assessmentMethods;
|
|
|
|
}
|
|
|
|
|
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-07 18:23:23 +02:00
|
|
|
public String getStockName() {
|
|
|
|
return stockName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStockName(String stockName) {
|
|
|
|
this.stockName = stockName;
|
|
|
|
}
|
|
|
|
|
2017-02-20 18:44:26 +01:00
|
|
|
public String getStockId() {
|
2017-02-19 16:40:19 +01:00
|
|
|
return stockId;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-02-20 18:44:26 +01:00
|
|
|
public void setStockId(String stockId) {
|
|
|
|
this.stockId = stockId;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-05-24 16:53:31 +02:00
|
|
|
public List<String> getArea() {
|
|
|
|
return area;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-07-06 13:53:15 +02:00
|
|
|
public List<TimeSeriesBean<Fishing_Pressure, Void>> getFishingPressureStandard() {
|
2017-05-24 16:53:31 +02:00
|
|
|
return fishingPressureStandard;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-05-24 16:53:31 +02:00
|
|
|
public void setFishingPressureStandard(
|
2017-07-06 13:53:15 +02:00
|
|
|
List<TimeSeriesBean<Fishing_Pressure, Void>> fishingPressureStandard) {
|
2017-05-24 16:53:31 +02:00
|
|
|
this.fishingPressureStandard = fishingPressureStandard;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<TimeSeriesBean<String, String>> getFishingPressure() {
|
|
|
|
return fishingPressure;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFishingPressure(
|
|
|
|
List<TimeSeriesBean<String, String>> fishingPressure) {
|
|
|
|
this.fishingPressure = fishingPressure;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-06-30 15:32:38 +02:00
|
|
|
public List<TimeSeriesBean<String, Void>> getNarrativeState() {
|
|
|
|
return narrativeState;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-06-30 15:32:38 +02:00
|
|
|
public void setNarrativeState(List<TimeSeriesBean<String, Void>> narrativeState) {
|
|
|
|
this.narrativeState = narrativeState;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
|
|
|
|
2017-07-13 11:50:05 +02:00
|
|
|
public List<String> getScientificAdvice() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return scientificAdvice;
|
|
|
|
}
|
|
|
|
|
2017-07-13 11:50:05 +02:00
|
|
|
public void setScientificAdvice(List<String> scientificAdvice) {
|
2016-10-07 18:23:23 +02:00
|
|
|
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
|
|
|
|
2017-07-10 16:41:24 +02:00
|
|
|
public List<TimeSeriesBean<String, Void>> getFaoState() {
|
|
|
|
return faoState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFaoState(List<TimeSeriesBean<String, Void>> faoState) {
|
|
|
|
this.faoState = faoState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getAssessmentMethods() {
|
|
|
|
return assessmentMethods;
|
|
|
|
}
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2017-02-19 16:40:19 +01:00
|
|
|
return "StockRecord [stockName=" + stockName + ", stockId=" + stockId
|
2017-05-24 16:53:31 +02:00
|
|
|
+ ", area=" + area + ", exploitingFishery=" + exploitingFishery
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", managementEntity=" + managementEntity
|
|
|
|
+ ", assessmentMethods=" + assessmentMethods
|
2016-12-01 15:37:26 +01:00
|
|
|
+ ", abundanceLevelStandard=" + abundanceLevelStandard
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", abundanceLevel=" + abundanceLevel
|
2017-05-24 16:53:31 +02:00
|
|
|
+ ", fishingPressureStandard=" + fishingPressureStandard
|
2017-06-30 15:32:38 +02:00
|
|
|
+ ", fishingPressure=" + fishingPressure + ", narrativeState="
|
2017-07-27 16:45:18 +02:00
|
|
|
+ narrativeState + ", faoState=" + faoState
|
|
|
|
+ ", scientificAdvice=" + scientificAdvice + ", assessor="
|
|
|
|
+ assessor + ", type=" + type + "]";
|
2016-11-25 18:25:23 +01:00
|
|
|
}
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|