Added Historic flag and start time to request bean

This commit is contained in:
Fabio Sinibaldi 2020-01-27 15:33:54 +01:00
parent e33963871a
commit d030d93020
1 changed files with 22 additions and 1 deletions

View File

@ -16,6 +16,24 @@ public class CSVExportRequest {
private Set<String> speciesIds=new HashSet<>();
private Set<String> periods=new HashSet<>();
private Boolean includeHistoric=false;
private Integer startYear=0;
public Boolean getIncludeHistoric() {
return includeHistoric;
}
public Integer getStartYear() {
return startYear;
}
public void setIncludeHistoric(Boolean includeHistoric) {
this.includeHistoric = includeHistoric;
}
public void setStartYear(Integer startYear) {
this.startYear = startYear;
}
public Set<String> getAreas() {
return areas;
}
@ -74,12 +92,15 @@ public class CSVExportRequest {
periods.addAll(toAdd);
return this;
}
@Override
public String toString() {
return "CSVExportRequest [type=" + type + ", farmIds=" + farmIds + ", quarters=" + quarters + ", areas=" + areas
+ ", speciesIds=" + speciesIds + ", periods=" + periods + "]";
+ ", speciesIds=" + speciesIds + ", periods=" + periods + ", includeHistoric=" + includeHistoric
+ ", startYear=" + startYear + "]";
}
}