# HG changeset patch # User Bjoern Ricks # Date 1348822373 0 # Node ID c434dd2e84cf04566ababc23d8ca89c7b66e1086 # Parent 4f0b95845aefe73ea9e604a3015ca8737e626976 Add the river name to the gaugeinfo flys-client/trunk@5638 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4f0b95845aef -r c434dd2e84cf flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Sep 27 18:31:03 2012 +0000 +++ b/flys-client/ChangeLog Fri Sep 28 08:52:53 2012 +0000 @@ -1,3 +1,10 @@ +2012-09-29 Björn Ricks + + * src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java, + src/main/java/de/intevation/flys/client/shared/model/GaugeInfo.java, + src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java: + Add river name to the GaugeInfo + 2012-09-27 Felix Wolfsteller Work on issue724 (i18n in minfo). diff -r 4f0b95845aef -r c434dd2e84cf flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java --- a/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java Thu Sep 27 18:31:03 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java Fri Sep 28 08:52:53 2012 +0000 @@ -133,6 +133,7 @@ logger.debug("Found gauge with name " + gname); GaugeInfo gaugeinfo = new DefaultGaugeInfo( + rname, gname, kmup, parseDouble(gstation), diff -r 4f0b95845aef -r c434dd2e84cf flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java --- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java Thu Sep 27 18:31:03 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java Fri Sep 28 08:52:53 2012 +0000 @@ -18,11 +18,13 @@ private Double station; private String wstunit; private Long officialnumber; + private String rivername; public DefaultGaugeInfo() { } public DefaultGaugeInfo( + String rivername, String name, boolean kmup, Double station, @@ -37,6 +39,7 @@ String wstunit, Long official) { + this.rivername = rivername; this.name = name; this.kmup = kmup; this.station = station; @@ -138,4 +141,11 @@ public Long getOfficialNumber() { return this.officialnumber; } + + /** + * Returns the river to which this gauge belongs + */ + public String getRiverName() { + return this.rivername; + } } diff -r 4f0b95845aef -r c434dd2e84cf flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeInfo.java --- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeInfo.java Thu Sep 27 18:31:03 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/GaugeInfo.java Fri Sep 28 08:52:53 2012 +0000 @@ -68,4 +68,9 @@ * Returns the official number of this gauge */ Long getOfficialNumber(); + + /** + * Returns the river to which this gauge belongs + */ + String getRiverName(); }