From 5b0488704af5c310d4fcfee626acac42621f20b0 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 4 Jul 2017 14:41:56 +0000 Subject: [PATCH] fisher fix (#8719) git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@150728 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../json/input/FisheryRecord.java | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/json/input/FisheryRecord.java b/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/json/input/FisheryRecord.java index 8e4ffdf..1816857 100644 --- a/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/json/input/FisheryRecord.java +++ b/src/main/java/org/gcube/data_catalogue/grsf_publish_ws/json/input/FisheryRecord.java @@ -15,7 +15,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; /** - * A fishery record bean + * A record bean * @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it) */ @JsonIgnoreProperties(ignoreUnknown = true) @@ -74,13 +74,10 @@ public class FisheryRecord extends Common{ @JsonProperty("environment") @CustomField(key="Environment") private String environment; - - // @JsonProperty("catches_or_landings") - // @CustomField(key="Catches or landings") - // //@Tag - // @TimeSeries - // @Valid - // private List> catchesOrLandings; + + @JsonProperty("fishery_uri") + @CustomField(key="Fishery Uri") + private String fisheryUri; @JsonProperty("type") @CustomField(key="Type") @@ -93,10 +90,9 @@ public class FisheryRecord extends Common{ } /** - * Create a Fishery record. * @param fisheryName * @param fisheryId - * @param scientificName + * @param species * @param fishingArea * @param exploitingStocks * @param managementEntity @@ -105,7 +101,7 @@ public class FisheryRecord extends Common{ * @param flagState * @param fishingGear * @param environment - * @param catchesOrLandings + * @param fisheryUri * @param type */ public FisheryRecord(String fisheryName, String fisheryId, @@ -114,9 +110,7 @@ public class FisheryRecord extends Common{ List jurisdictionArea, List productionSystemType, List flagState, List fishingGear, - String environment, - // List> catchesOrLandings, - Fishery_Type type) { + String environment, String fisheryUri, Fishery_Type type) { super(); this.fisheryName = fisheryName; this.fisheryId = fisheryId; @@ -129,10 +123,18 @@ public class FisheryRecord extends Common{ this.flagState = flagState; this.fishingGear = fishingGear; this.environment = environment; - // this.catchesOrLandings = catchesOrLandings; + this.fisheryUri = fisheryUri; this.type = type; } + public String getFisheryUri() { + return fisheryUri; + } + + public void setFisheryUri(String fisheryUri) { + this.fisheryUri = fisheryUri; + } + public String getFisheryName() { return fisheryName; } @@ -173,14 +175,6 @@ public class FisheryRecord extends Common{ this.environment = environment; } - // public List> getCatchesOrLandings() { - // return catchesOrLandings; - // } - // - // public void setCatchesOrLandings(List> catchesOrLandings) { - // this.catchesOrLandings = catchesOrLandings; - // } - public Fishery_Type getType() { return type; } @@ -247,7 +241,8 @@ public class FisheryRecord extends Common{ + ", jurisdictionArea=" + jurisdictionArea + ", productionSystemType=" + productionSystemType + ", flagState=" + flagState + ", fishingGear=" + fishingGear - + ", environment=" + environment + ", type=" + type + "]"; + + ", environment=" + environment + ", fisheryUri=" + fisheryUri + + ", type=" + type + "]"; } }