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-11-24 17:53:50 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
2016-10-13 11:46:42 +02:00
|
|
|
import javax.validation.constraints.NotNull;
|
2016-12-01 22:41:24 +01:00
|
|
|
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-30 18:29:44 +01:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Fishery_Type;
|
2016-10-07 18:23:23 +02:00
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.groups.Production_System_Type;
|
|
|
|
|
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 fishery 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 FisheryRecord extends Common{
|
2016-10-07 18:23:23 +02:00
|
|
|
|
|
|
|
@JsonProperty("fishery_name")
|
2016-10-13 11:46:42 +02:00
|
|
|
@NotNull(message="fishery_name cannot be null")
|
2016-12-01 22:41:24 +01:00
|
|
|
@Size(min=1, message="fishery_name cannot be empty")
|
2016-10-14 18:44:34 +02:00
|
|
|
@CustomField(key="Fishery Name")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String fisheryName;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("fishery_id")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Fishery id")
|
2016-10-07 18:23:23 +02:00
|
|
|
private String fisheryId;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-12-09 14:06:19 +01:00
|
|
|
@JsonProperty("species")
|
2016-10-08 20:46:17 +02:00
|
|
|
@Tag
|
2016-12-09 14:06:19 +01:00
|
|
|
@CustomField(key="Species")
|
|
|
|
private List<String> species;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("fishing_area")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Fishing area")
|
2017-02-15 15:11:45 +01:00
|
|
|
@Tag
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> fishingArea;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-12 16:30:52 +02:00
|
|
|
@JsonProperty("exploited_stocks")
|
|
|
|
@CustomField(key="Exploited stocks")
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> exploitingStocks;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("management_entity")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Management entity")
|
2016-12-09 14:44:15 +01:00
|
|
|
@Tag
|
2016-12-09 14:06:19 +01:00
|
|
|
private List<String> managementEntity;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("jurisdiction_area")
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Jurisdiction Area")
|
2017-02-15 15:11:45 +01:00
|
|
|
@Tag
|
2016-12-01 15:37:26 +01:00
|
|
|
private List<String> jurisdictionArea;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("production_system_type")
|
2017-02-15 15:11:45 +01:00
|
|
|
//@Group
|
2016-10-13 14:06:15 +02:00
|
|
|
@Tag
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Production system type")
|
2016-12-09 14:06:19 +01:00
|
|
|
private List<Production_System_Type> productionSystemType;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("flag_state")
|
2016-10-08 20:46:17 +02:00
|
|
|
@Tag
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Flag state")
|
2016-12-09 14:06:19 +01:00
|
|
|
private List<String> flagState;
|
2016-10-09 12:36:25 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@JsonProperty("fishing_gear")
|
2016-10-08 20:46:17 +02:00
|
|
|
@Tag
|
2016-10-08 23:10:25 +02:00
|
|
|
@CustomField(key="Fishing gear")
|
2016-12-09 14:06:19 +01:00
|
|
|
private List<String> fishingGear;
|
2016-10-07 18:23:23 +02:00
|
|
|
|
2016-10-12 14:49:27 +02:00
|
|
|
@JsonProperty("environment")
|
|
|
|
@CustomField(key="Environment")
|
|
|
|
private String environment;
|
|
|
|
|
2016-11-24 17:53:50 +01:00
|
|
|
@JsonProperty("catches_or_landings")
|
|
|
|
@CustomField(key="Catches or landings")
|
2017-02-15 15:11:45 +01:00
|
|
|
//@Tag
|
2016-12-01 23:21:37 +01:00
|
|
|
@TimeSeries
|
2016-11-24 17:53:50 +01:00
|
|
|
@Valid
|
|
|
|
private List<TimeSeriesBean<String, String>> catchesOrLandings;
|
2016-12-01 19:19:22 +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 Fishery_Type type;
|
2016-11-24 17:53:50 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
public FisheryRecord() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-11-06 21:21:11 +01:00
|
|
|
* Create a Fishery record.
|
2016-10-07 18:23:23 +02:00
|
|
|
* @param fisheryName
|
|
|
|
* @param fisheryId
|
|
|
|
* @param scientificName
|
|
|
|
* @param fishingArea
|
|
|
|
* @param exploitingStocks
|
|
|
|
* @param managementEntity
|
|
|
|
* @param jurisdictionArea
|
|
|
|
* @param productionSystemType
|
|
|
|
* @param flagState
|
|
|
|
* @param fishingGear
|
2016-10-12 14:49:27 +02:00
|
|
|
* @param environment
|
2016-11-24 17:53:50 +01:00
|
|
|
* @param catchesOrLandings
|
2016-11-25 18:25:23 +01:00
|
|
|
* @param type
|
2016-10-07 18:23:23 +02:00
|
|
|
*/
|
|
|
|
public FisheryRecord(String fisheryName, String fisheryId,
|
2016-12-09 14:06:19 +01:00
|
|
|
List<String> species, List<String> fishingArea,
|
|
|
|
List<String> exploitingStocks, List<String> managementEntity,
|
2016-12-01 15:37:26 +01:00
|
|
|
List<String> jurisdictionArea,
|
2016-12-09 14:06:19 +01:00
|
|
|
List<Production_System_Type> productionSystemType,
|
|
|
|
List<String> flagState, List<String> fishingGear,
|
|
|
|
String environment,
|
2016-11-25 18:25:23 +01:00
|
|
|
List<TimeSeriesBean<String, String>> catchesOrLandings,
|
2016-11-30 18:29:44 +01:00
|
|
|
Fishery_Type type) {
|
2016-10-07 18:23:23 +02:00
|
|
|
super();
|
|
|
|
this.fisheryName = fisheryName;
|
|
|
|
this.fisheryId = fisheryId;
|
2016-12-09 14:06:19 +01:00
|
|
|
this.species = species;
|
2016-10-07 18:23:23 +02:00
|
|
|
this.fishingArea = fishingArea;
|
|
|
|
this.exploitingStocks = exploitingStocks;
|
|
|
|
this.managementEntity = managementEntity;
|
|
|
|
this.jurisdictionArea = jurisdictionArea;
|
|
|
|
this.productionSystemType = productionSystemType;
|
|
|
|
this.flagState = flagState;
|
|
|
|
this.fishingGear = fishingGear;
|
2016-10-12 14:49:27 +02:00
|
|
|
this.environment = environment;
|
2016-11-24 17:53:50 +01:00
|
|
|
this.catchesOrLandings = catchesOrLandings;
|
2016-11-25 18:25:23 +01:00
|
|
|
this.type = type;
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
2016-12-09 14:06:19 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
public String getFisheryName() {
|
|
|
|
return fisheryName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFisheryName(String fisheryName) {
|
|
|
|
this.fisheryName = fisheryName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getFisheryId() {
|
|
|
|
return fisheryId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFisheryId(String fisheryId) {
|
|
|
|
this.fisheryId = fisheryId;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<String> getFishingArea() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return fishingArea;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setFishingArea(List<String> fishingArea) {
|
2016-10-07 18:23:23 +02:00
|
|
|
this.fishingArea = fishingArea;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public List<String> getJurisdictionArea() {
|
2016-10-07 18:23:23 +02:00
|
|
|
return jurisdictionArea;
|
|
|
|
}
|
|
|
|
|
2016-12-01 15:37:26 +01:00
|
|
|
public void setJurisdictionArea(List<String> jurisdictionArea) {
|
2016-10-07 18:23:23 +02:00
|
|
|
this.jurisdictionArea = jurisdictionArea;
|
|
|
|
}
|
|
|
|
|
2016-10-12 14:49:27 +02:00
|
|
|
public String getEnvironment() {
|
|
|
|
return environment;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setEnvironment(String environment) {
|
|
|
|
this.environment = environment;
|
|
|
|
}
|
|
|
|
|
2016-11-24 17:53:50 +01:00
|
|
|
public List<TimeSeriesBean<String, String>> getCatchesOrLandings() {
|
|
|
|
return catchesOrLandings;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCatchesOrLandings(List<TimeSeriesBean<String, String>> catchesOrLandings) {
|
|
|
|
this.catchesOrLandings = catchesOrLandings;
|
|
|
|
}
|
|
|
|
|
2016-11-30 18:29:44 +01:00
|
|
|
public Fishery_Type getType() {
|
2016-11-25 18:25:23 +01:00
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2016-11-30 18:29:44 +01:00
|
|
|
public void setType(Fishery_Type type) {
|
2016-11-25 18:25:23 +01:00
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
2016-12-09 14:06:19 +01:00
|
|
|
public List<String> getSpecies() {
|
|
|
|
return species;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSpecies(List<String> species) {
|
|
|
|
this.species = species;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getExploitingStocks() {
|
|
|
|
return exploitingStocks;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExploitingStocks(List<String> exploitingStocks) {
|
|
|
|
this.exploitingStocks = exploitingStocks;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getManagementEntity() {
|
|
|
|
return managementEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setManagementEntity(List<String> managementEntity) {
|
|
|
|
this.managementEntity = managementEntity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Production_System_Type> getProductionSystemType() {
|
|
|
|
return productionSystemType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProductionSystemType(
|
|
|
|
List<Production_System_Type> productionSystemType) {
|
|
|
|
this.productionSystemType = productionSystemType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getFlagState() {
|
|
|
|
return flagState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFlagState(List<String> flagState) {
|
|
|
|
this.flagState = flagState;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getFishingGear() {
|
|
|
|
return fishingGear;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFishingGear(List<String> fishingGear) {
|
|
|
|
this.fishingGear = fishingGear;
|
|
|
|
}
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2016-11-24 17:53:50 +01:00
|
|
|
return "FisheryRecord [fisheryName=" + fisheryName + ", fisheryId="
|
2016-12-09 14:06:19 +01:00
|
|
|
+ fisheryId + ", species=" + species + ", fishingArea="
|
|
|
|
+ fishingArea + ", exploitingStocks=" + exploitingStocks
|
|
|
|
+ ", managementEntity=" + managementEntity
|
2016-10-07 18:23:23 +02:00
|
|
|
+ ", jurisdictionArea=" + jurisdictionArea
|
|
|
|
+ ", productionSystemType=" + productionSystemType
|
|
|
|
+ ", flagState=" + flagState + ", fishingGear=" + fishingGear
|
2016-11-24 17:53:50 +01:00
|
|
|
+ ", environment=" + environment + ", catchesOrLandings="
|
2016-11-25 18:25:23 +01:00
|
|
|
+ catchesOrLandings + ", type=" + type + "]";
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|
2016-12-01 19:19:22 +01:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|