Skip to content

Commit b5e496b

Browse files
committed
CWMSVUE-755 add corresponding date versioned field to TimeSeriesCatalogEntry
1 parent 8d54e56 commit b5e496b

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

cwms-data-api-model/src/main/java/mil/army/usace/hec/cwms/data/api/client/model/TimeSeriesCatalogEntry.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public class TimeSeriesCatalogEntry {
6161
@Valid
6262
private List<TimeSeriesExtents> extents = new ArrayList<>();
6363

64+
@JsonProperty("versioned")
65+
private boolean versioned = false;
66+
6467
public TimeSeriesCatalogEntry office(String office) {
6568
this.office = office;
6669
return this;
@@ -202,6 +205,13 @@ public void setExtents(List<TimeSeriesExtents> extents) {
202205
this.extents = extents;
203206
}
204207

208+
public boolean isVersioned() {
209+
return versioned;
210+
}
211+
212+
public void setVersioned(boolean versioned) {
213+
this.versioned = versioned;
214+
}
205215

206216
@Override
207217
public boolean equals(Object o) {
@@ -224,14 +234,15 @@ public boolean equals(Object o) {
224234
this.locationTimeZone == null || timeseriesCatalogEntry.locationTimeZone == null ?
225235
Objects.equals(this.locationTimeZone, timeseriesCatalogEntry.locationTimeZone) :
226236
this.locationTimeZone.equalsIgnoreCase(timeseriesCatalogEntry.locationTimeZone) &&
227-
Objects.equals(this.extents, timeseriesCatalogEntry.extents);
237+
Objects.equals(this.extents, timeseriesCatalogEntry.extents) &&
238+
this.versioned == timeseriesCatalogEntry.versioned;
228239
}
229240

230241
@Override
231242
public int hashCode() {
232243
return Objects.hash(office == null ? 0 : office.toLowerCase(), timeSeriesId == null ? 0 : timeSeriesId.toLowerCase(),
233244
units == null ? 0 : units.toLowerCase(), interval == null ? 0 : interval.toLowerCase(), intervalOffsetMinutes,
234-
locationTimeZone == null ? 0 : locationTimeZone.toLowerCase(), extents);
245+
locationTimeZone == null ? 0 : locationTimeZone.toLowerCase(), extents, versioned);
235246
}
236247

237248
@Override
@@ -246,6 +257,7 @@ public String toString() {
246257
sb.append(" intervalOffset: ").append(toIndentedString(intervalOffsetMinutes)).append("\n");
247258
sb.append(" timeZone: ").append(toIndentedString(locationTimeZone)).append("\n");
248259
sb.append(" extents: ").append(toIndentedString(extents)).append("\n");
260+
sb.append(" versioned: ").append(toIndentedString(versioned)).append("\n");
249261
sb.append("}");
250262
return sb.toString();
251263
}

0 commit comments

Comments
 (0)