Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiverInfo.java @ 3847:f3b821735e39
Calculate the info url via i18n
Don't fetch the info url from the artifact service and use i18n to calculate the
url by using the official gauge and river number.
flys-client/trunk@5582 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 24 Sep 2012 08:39:22 +0000 |
parents | 70976b711b7e |
children | 7a889098bcc6 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiverInfo.java Sat Sep 22 22:26:38 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultRiverInfo.java Mon Sep 24 08:39:22 2012 +0000 @@ -15,7 +15,7 @@ private String wstunit; private Double minq; private Double maxq; - private String infourl; + private Long officialnumber; private List<GaugeInfo> gaugeinfo; @@ -30,18 +30,18 @@ String wstunit, Double minq, Double maxq, - String infourl, + Long official, List<GaugeInfo> gaugeinfo) { - this.name = name; - this.kmup = kmup; - this.start = start; - this.end = end; - this.wstunit = wstunit; - this.minq = minq; - this.maxq = maxq; - this.infourl = infourl; - this.gaugeinfo = gaugeinfo; + this.name = name; + this.kmup = kmup; + this.start = start; + this.end = end; + this.wstunit = wstunit; + this.minq = minq; + this.maxq = maxq; + this.officialnumber = official; + this.gaugeinfo = gaugeinfo; } @@ -99,9 +99,9 @@ } /** - * Returns the URL where to find additional information about this river + * Returns the official number of the river */ - public String getInfoURL() { - return this.infourl; + public Long getOfficialNumber() { + return this.officialnumber; } }