added 'envirnoment' property to Fishery model

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133122 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-12 12:49:27 +00:00
parent de77721aab
commit 24fc97c02d
2 changed files with 22 additions and 4 deletions

View File

@ -62,6 +62,10 @@ public class FisheryRecord extends Common{
@CustomField(key="Status")
private Status status;
@JsonProperty("environment")
@CustomField(key="Environment")
private String environment;
public FisheryRecord() {
super();
}
@ -77,12 +81,14 @@ public class FisheryRecord extends Common{
* @param productionSystemType
* @param flagState
* @param fishingGear
* @param status
* @param environment
*/
public FisheryRecord(String fisheryName, String fisheryId,
String scientificName, String fishingArea, String exploitingStocks,
String managementEntity, String jurisdictionArea,
Production_System_Type productionSystemType, String flagState,
String fishingGear) {
String fishingGear, Status status, String environment) {
super();
this.fisheryName = fisheryName;
this.fisheryId = fisheryId;
@ -94,6 +100,8 @@ public class FisheryRecord extends Common{
this.productionSystemType = productionSystemType;
this.flagState = flagState;
this.fishingGear = fishingGear;
this.status = status;
this.environment = environment;
}
public String getFisheryName() {
@ -184,6 +192,14 @@ public class FisheryRecord extends Common{
this.status = status;
}
public String getEnvironment() {
return environment;
}
public void setEnvironment(String environment) {
this.environment = environment;
}
@Override
public String toString() {
return "FisheryRecord [" + super.toString() + ", fisheryName=" + fisheryName + ", fisheryId="
@ -193,7 +209,7 @@ public class FisheryRecord extends Common{
+ ", jurisdictionArea=" + jurisdictionArea
+ ", productionSystemType=" + productionSystemType
+ ", flagState=" + flagState + ", fishingGear=" + fishingGear
+ ", status=" + status + "]";
+ ", status=" + status + ", environment=" + environment + "]";
}
}

View File

@ -28,13 +28,15 @@
<description>Scope of pending products</description>
<param-name>PendingContext</param-name>
<!-- <param-value>/d4science.research-infrastructures.eu/FARM/GRSF</param-value> -->
<param-value>/gcube/devNext/NextNext</param-value>
<!-- <param-value>/gcube/devNext/NextNext</param-value> -->
<param-value>/gcube/preprod/Dorne</param-value>
</context-param>
<context-param>
<description>Scope of confirmed products</description>
<param-name>ConfirmedContext</param-name>
<!-- <param-value>/d4science.research-infrastructures.eu/FARM/GRSFAccepted</param-value> -->
<param-value>/gcube/devNext/NextNext</param-value>
<!-- <param-value>/gcube/devNext/NextNext</param-value> -->
<param-value>/gcube/preprod/Dorne</param-value>
</context-param>
</web-app>