json field names changed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@151512 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7fd2b3a435
commit
6fd75bd8bc
|
@ -62,10 +62,10 @@ public class Base {
|
||||||
@JsonProperty("extras_resources")
|
@JsonProperty("extras_resources")
|
||||||
private List<ResourceBean> extrasResources = new ArrayList<ResourceBean>();
|
private List<ResourceBean> extrasResources = new ArrayList<ResourceBean>();
|
||||||
|
|
||||||
@JsonProperty("uuid_knowledge_base")
|
@JsonProperty("grsf_uuid")
|
||||||
@CustomField(key=UUID_KB_KEY)
|
@CustomField(key=UUID_KB_KEY)
|
||||||
@NotNull(message="uuid_knowledge_base cannot be null")
|
@NotNull(message="grsf_uuid cannot be null")
|
||||||
@Size(min=1, message="uuid_knowledge_base cannot be empty")
|
@Size(min=1, message="grsf_uuid cannot be empty")
|
||||||
private String uuid;
|
private String uuid;
|
||||||
|
|
||||||
public Base() {
|
public Base() {
|
||||||
|
|
|
@ -53,13 +53,13 @@ public class Common extends Base{
|
||||||
@Group(condition="true", groupNameOverValue="traceability-flag") // record is added to group traceability-flag if Traceability Flag is true
|
@Group(condition="true", groupNameOverValue="traceability-flag") // record is added to group traceability-flag if Traceability Flag is true
|
||||||
private Boolean traceabilityFlag;
|
private Boolean traceabilityFlag;
|
||||||
|
|
||||||
@JsonProperty("status")
|
@JsonProperty("status_grsf_record")
|
||||||
@CustomField(key="Status of the GRSF record")
|
@CustomField(key="Status of the GRSF record")
|
||||||
@Group
|
@Group
|
||||||
private Status status;
|
private Status status;
|
||||||
|
|
||||||
// automatically compiled
|
// automatically compiled
|
||||||
@JsonProperty("grsf_type")
|
@JsonProperty("grsf_domain")
|
||||||
@CustomField(key=GRSF_DOMAIN_KEY)
|
@CustomField(key=GRSF_DOMAIN_KEY)
|
||||||
private String grsfType;
|
private String grsfType;
|
||||||
|
|
||||||
|
@ -79,9 +79,13 @@ public class Common extends Base{
|
||||||
@CustomField(key="Species")
|
@CustomField(key="Species")
|
||||||
private List<String> species;
|
private List<String> species;
|
||||||
|
|
||||||
@JsonProperty("similar_records")
|
@JsonProperty("similar_grsf_records")
|
||||||
@CustomField(key="Similar GRSF Records")
|
@CustomField(key="Similar GRSF Records")
|
||||||
private List<SimilarRecordBean> similarRecords;
|
private List<SimilarRecordBean> similarGRSFRecords;
|
||||||
|
|
||||||
|
@JsonProperty("similar_source_records")
|
||||||
|
@CustomField(key="Similar Source Records")
|
||||||
|
private List<SimilarRecordBean> similarSourceRecords;
|
||||||
|
|
||||||
public Common() {
|
public Common() {
|
||||||
super();
|
super();
|
||||||
|
@ -99,7 +103,8 @@ public class Common extends Base{
|
||||||
* @param catches
|
* @param catches
|
||||||
* @param landings
|
* @param landings
|
||||||
* @param species
|
* @param species
|
||||||
* @param similarRecords
|
* @param similarGRSFRecords
|
||||||
|
* @param similarSourceRecords
|
||||||
*/
|
*/
|
||||||
public Common(List<String> dataOwner,
|
public Common(List<String> dataOwner,
|
||||||
List<Resource<Sources>> databaseSources,
|
List<Resource<Sources>> databaseSources,
|
||||||
|
@ -108,7 +113,8 @@ public class Common extends Base{
|
||||||
Boolean traceabilityFlag, Status status, String grsfType,
|
Boolean traceabilityFlag, Status status, String grsfType,
|
||||||
List<TimeSeriesBean<String, String>> catches,
|
List<TimeSeriesBean<String, String>> catches,
|
||||||
List<TimeSeriesBean<String, String>> landings,
|
List<TimeSeriesBean<String, String>> landings,
|
||||||
List<String> species, List<SimilarRecordBean> similarRecords) {
|
List<String> species, List<SimilarRecordBean> similarGRSFRecords,
|
||||||
|
List<SimilarRecordBean> similarSourceRecords) {
|
||||||
super();
|
super();
|
||||||
this.dataOwner = dataOwner;
|
this.dataOwner = dataOwner;
|
||||||
this.databaseSources = databaseSources;
|
this.databaseSources = databaseSources;
|
||||||
|
@ -121,7 +127,8 @@ public class Common extends Base{
|
||||||
this.catches = catches;
|
this.catches = catches;
|
||||||
this.landings = landings;
|
this.landings = landings;
|
||||||
this.species = species;
|
this.species = species;
|
||||||
this.similarRecords = similarRecords;
|
this.similarGRSFRecords = similarGRSFRecords;
|
||||||
|
this.similarSourceRecords = similarSourceRecords;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getGrsfType() {
|
public String getGrsfType() {
|
||||||
|
@ -215,12 +222,20 @@ public class Common extends Base{
|
||||||
this.dataOwner = dataOwner;
|
this.dataOwner = dataOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<SimilarRecordBean> getSimilarRecords() {
|
public List<SimilarRecordBean> getSimilarGRSFRecords() {
|
||||||
return similarRecords;
|
return similarGRSFRecords;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSimilarRecords(List<SimilarRecordBean> similarRecords) {
|
public void setSimilarGRSFRecords(List<SimilarRecordBean> similarGRSFRecords) {
|
||||||
this.similarRecords = similarRecords;
|
this.similarGRSFRecords = similarGRSFRecords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<SimilarRecordBean> getSimilarSourceRecords() {
|
||||||
|
return similarSourceRecords;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSimilarSourceRecords(List<SimilarRecordBean> similarSourceRecords) {
|
||||||
|
this.similarSourceRecords = similarSourceRecords;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -231,8 +246,8 @@ public class Common extends Base{
|
||||||
+ ", shortTitle=" + shortTitle + ", traceabilityFlag="
|
+ ", shortTitle=" + shortTitle + ", traceabilityFlag="
|
||||||
+ traceabilityFlag + ", status=" + status + ", grsfType="
|
+ traceabilityFlag + ", status=" + status + ", grsfType="
|
||||||
+ grsfType + ", catches=" + catches + ", landings=" + landings
|
+ grsfType + ", catches=" + catches + ", landings=" + landings
|
||||||
+ ", species=" + species + ", similarRecords=" + similarRecords
|
+ ", species=" + species + ", similarGRSFRecords="
|
||||||
+ "]";
|
+ similarGRSFRecords + ", similarSourceRecords="
|
||||||
|
+ similarSourceRecords + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@ public class FisheryRecord extends Common{
|
||||||
@JsonProperty("fishery_name")
|
@JsonProperty("fishery_name")
|
||||||
@NotNull(message="fishery_name cannot be null")
|
@NotNull(message="fishery_name cannot be null")
|
||||||
@Size(min=1, message="fishery_name cannot be empty")
|
@Size(min=1, message="fishery_name cannot be empty")
|
||||||
@CustomField(key="GRSF Name")
|
@CustomField(key="Fishery Name")
|
||||||
private String fisheryName;
|
private String fisheryName;
|
||||||
|
|
||||||
@JsonProperty("fishery_id")
|
@JsonProperty("fishery_id")
|
||||||
|
@ -35,13 +35,13 @@ public class FisheryRecord extends Common{
|
||||||
@CustomField(key="Fishing area")
|
@CustomField(key="Fishing area")
|
||||||
private List<String> fishingArea;
|
private List<String> fishingArea;
|
||||||
|
|
||||||
@JsonProperty("exploited_stocks")
|
@JsonProperty("resources_exploited")
|
||||||
@CustomField(key="Resources Exploited")
|
@CustomField(key="Resources Exploited")
|
||||||
private List<String> exploitingStocks;
|
private List<String> resourcesExploited;
|
||||||
|
|
||||||
@JsonProperty("management_entity")
|
@JsonProperty("management_body_authorities")
|
||||||
@CustomField(key="Management Body/Authority(ies)")
|
@CustomField(key="Management Body/Authority(ies)")
|
||||||
private List<String> managementEntity;
|
private List<String> managementBodyAuthorities;
|
||||||
|
|
||||||
@JsonProperty("jurisdiction_area")
|
@JsonProperty("jurisdiction_area")
|
||||||
@CustomField(key="Jurisdiction Area")
|
@CustomField(key="Jurisdiction Area")
|
||||||
|
@ -62,7 +62,7 @@ public class FisheryRecord extends Common{
|
||||||
@CustomField(key="Fishing gear")
|
@CustomField(key="Fishing gear")
|
||||||
private List<String> fishingGear;
|
private List<String> fishingGear;
|
||||||
|
|
||||||
@JsonProperty("type")
|
@JsonProperty("grsf_type")
|
||||||
@CustomField(key="GRSF Type")
|
@CustomField(key="GRSF Type")
|
||||||
@Group
|
@Group
|
||||||
private Fishery_Type type;
|
private Fishery_Type type;
|
||||||
|
@ -75,8 +75,8 @@ public class FisheryRecord extends Common{
|
||||||
* @param fisheryName
|
* @param fisheryName
|
||||||
* @param fisheryId
|
* @param fisheryId
|
||||||
* @param fishingArea
|
* @param fishingArea
|
||||||
* @param exploitingStocks
|
* @param resourcesExploited
|
||||||
* @param managementEntity
|
* @param managementBodyAuthorities
|
||||||
* @param jurisdictionArea
|
* @param jurisdictionArea
|
||||||
* @param productionSystemType
|
* @param productionSystemType
|
||||||
* @param flagState
|
* @param flagState
|
||||||
|
@ -84,16 +84,17 @@ public class FisheryRecord extends Common{
|
||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
public FisheryRecord(String fisheryName, String fisheryId,
|
public FisheryRecord(String fisheryName, String fisheryId,
|
||||||
List<String> fishingArea, List<String> exploitingStocks,
|
List<String> fishingArea, List<String> resourcesExploited,
|
||||||
List<String> managementEntity, List<String> jurisdictionArea,
|
List<String> managementBodyAuthorities,
|
||||||
|
List<String> jurisdictionArea,
|
||||||
List<Production_System_Type> productionSystemType,
|
List<Production_System_Type> productionSystemType,
|
||||||
List<String> flagState, List<String> fishingGear, Fishery_Type type) {
|
List<String> flagState, List<String> fishingGear, Fishery_Type type) {
|
||||||
super();
|
super();
|
||||||
this.fisheryName = fisheryName;
|
this.fisheryName = fisheryName;
|
||||||
this.fisheryId = fisheryId;
|
this.fisheryId = fisheryId;
|
||||||
this.fishingArea = fishingArea;
|
this.fishingArea = fishingArea;
|
||||||
this.exploitingStocks = exploitingStocks;
|
this.resourcesExploited = resourcesExploited;
|
||||||
this.managementEntity = managementEntity;
|
this.managementBodyAuthorities = managementBodyAuthorities;
|
||||||
this.jurisdictionArea = jurisdictionArea;
|
this.jurisdictionArea = jurisdictionArea;
|
||||||
this.productionSystemType = productionSystemType;
|
this.productionSystemType = productionSystemType;
|
||||||
this.flagState = flagState;
|
this.flagState = flagState;
|
||||||
|
@ -141,20 +142,20 @@ public class FisheryRecord extends Common{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getExploitingStocks() {
|
public List<String> getResourcesExploited() {
|
||||||
return exploitingStocks;
|
return resourcesExploited;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setExploitingStocks(List<String> exploitingStocks) {
|
public void setResourcesExploited(List<String> resourcesExploited) {
|
||||||
this.exploitingStocks = exploitingStocks;
|
this.resourcesExploited = resourcesExploited;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getManagementEntity() {
|
public List<String> getManagementBodyAuthorities() {
|
||||||
return managementEntity;
|
return managementBodyAuthorities;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setManagementEntity(List<String> managementEntity) {
|
public void setManagementBodyAuthorities(List<String> managementBodyAuthorities) {
|
||||||
this.managementEntity = managementEntity;
|
this.managementBodyAuthorities = managementBodyAuthorities;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Production_System_Type> getProductionSystemType() {
|
public List<Production_System_Type> getProductionSystemType() {
|
||||||
|
@ -186,8 +187,8 @@ public class FisheryRecord extends Common{
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FisheryRecord [fisheryName=" + fisheryName + ", fisheryId="
|
return "FisheryRecord [fisheryName=" + fisheryName + ", fisheryId="
|
||||||
+ fisheryId + ", fishingArea=" + fishingArea
|
+ fisheryId + ", fishingArea=" + fishingArea
|
||||||
+ ", exploitingStocks=" + exploitingStocks
|
+ ", resourcesExploited=" + resourcesExploited
|
||||||
+ ", managementEntity=" + managementEntity
|
+ ", managementBodyAuthorities=" + managementBodyAuthorities
|
||||||
+ ", jurisdictionArea=" + jurisdictionArea
|
+ ", jurisdictionArea=" + jurisdictionArea
|
||||||
+ ", productionSystemType=" + productionSystemType
|
+ ", productionSystemType=" + productionSystemType
|
||||||
+ ", flagState=" + flagState + ", fishingGear=" + fishingGear
|
+ ", flagState=" + flagState + ", fishingGear=" + fishingGear
|
||||||
|
|
|
@ -27,14 +27,14 @@ public class StockRecord extends Common{
|
||||||
@JsonProperty("stock_name")
|
@JsonProperty("stock_name")
|
||||||
@NotNull(message="stock_name cannot be null")
|
@NotNull(message="stock_name cannot be null")
|
||||||
@Size(min=2, message="stock_name cannot be empty")
|
@Size(min=2, message="stock_name cannot be empty")
|
||||||
@CustomField(key="GRSF Name")
|
@CustomField(key="Stock Name")
|
||||||
private String stockName;
|
private String stockName;
|
||||||
|
|
||||||
@JsonProperty("stock_id")
|
@JsonProperty("stock_id")
|
||||||
@CustomField(key="GRSF Semantic identifier")
|
@CustomField(key="GRSF Semantic identifier")
|
||||||
private String stockId;
|
private String stockId;
|
||||||
|
|
||||||
@JsonProperty("assessment_distribution_area")
|
@JsonProperty("assessment_area")
|
||||||
@CustomField(key="Assessment Area")
|
@CustomField(key="Assessment Area")
|
||||||
private List<String> area;
|
private List<String> area;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public class StockRecord extends Common{
|
||||||
@CustomField(key="Exploiting Fishery")
|
@CustomField(key="Exploiting Fishery")
|
||||||
private List<String> exploitingFishery;
|
private List<String> exploitingFishery;
|
||||||
|
|
||||||
@JsonProperty("management_entity")
|
@JsonProperty("management_body_authorities")
|
||||||
@CustomField(key="Management Body/Authority(ies)")
|
@CustomField(key="Management Body/Authority(ies)")
|
||||||
@Tag
|
@Tag
|
||||||
private String managementEntity;
|
private String managementEntity;
|
||||||
|
@ -51,7 +51,7 @@ public class StockRecord extends Common{
|
||||||
@CustomField(key="Assessment Methods")
|
@CustomField(key="Assessment Methods")
|
||||||
private List<String> assessmentMethods;
|
private List<String> assessmentMethods;
|
||||||
|
|
||||||
@JsonProperty("standard_abundance_level")
|
@JsonProperty("firms_standard_abundance_level")
|
||||||
@CustomField(key="Abundance Level (FIRMS Standard)")
|
@CustomField(key="Abundance Level (FIRMS Standard)")
|
||||||
@TimeSeries
|
@TimeSeries
|
||||||
@Valid
|
@Valid
|
||||||
|
@ -63,7 +63,7 @@ public class StockRecord extends Common{
|
||||||
@Valid
|
@Valid
|
||||||
private List<TimeSeriesBean<String, String>> abundanceLevel;
|
private List<TimeSeriesBean<String, String>> abundanceLevel;
|
||||||
|
|
||||||
@JsonProperty("standard_fishing_pressure")
|
@JsonProperty("firms_standard_fishing_pressure")
|
||||||
@CustomField(key="Fishing Pressure (FIRMS Standard)")
|
@CustomField(key="Fishing Pressure (FIRMS Standard)")
|
||||||
@TimeSeries
|
@TimeSeries
|
||||||
@Valid
|
@Valid
|
||||||
|
@ -75,13 +75,13 @@ public class StockRecord extends Common{
|
||||||
@Valid
|
@Valid
|
||||||
private List<TimeSeriesBean<String, String>> fishingPressure;
|
private List<TimeSeriesBean<String, String>> fishingPressure;
|
||||||
|
|
||||||
@JsonProperty("narrative_state")
|
@JsonProperty("state_and_trend_of_marine_resources")
|
||||||
@CustomField(key="State and trend of Marine Resource")
|
@CustomField(key="State and trend of Marine Resource")
|
||||||
@TimeSeries
|
@TimeSeries
|
||||||
@Valid
|
@Valid
|
||||||
private List<TimeSeriesBean<String, Void>> narrativeState;
|
private List<TimeSeriesBean<String, Void>> narrativeState;
|
||||||
|
|
||||||
@JsonProperty("fao_state")
|
@JsonProperty("fao_categories")
|
||||||
@CustomField(key="Fao Categories")
|
@CustomField(key="Fao Categories")
|
||||||
@TimeSeries
|
@TimeSeries
|
||||||
@Valid
|
@Valid
|
||||||
|
|
Loading…
Reference in New Issue