comparison 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
comparison
equal deleted inserted replaced
3846:84a48acabd78 3847:f3b821735e39
13 private Double start; 13 private Double start;
14 private Double end; 14 private Double end;
15 private String wstunit; 15 private String wstunit;
16 private Double minq; 16 private Double minq;
17 private Double maxq; 17 private Double maxq;
18 private String infourl; 18 private Long officialnumber;
19 19
20 private List<GaugeInfo> gaugeinfo; 20 private List<GaugeInfo> gaugeinfo;
21 21
22 public DefaultRiverInfo() { 22 public DefaultRiverInfo() {
23 } 23 }
28 Double start, 28 Double start,
29 Double end, 29 Double end,
30 String wstunit, 30 String wstunit,
31 Double minq, 31 Double minq,
32 Double maxq, 32 Double maxq,
33 String infourl, 33 Long official,
34 List<GaugeInfo> gaugeinfo) 34 List<GaugeInfo> gaugeinfo)
35 { 35 {
36 this.name = name; 36 this.name = name;
37 this.kmup = kmup; 37 this.kmup = kmup;
38 this.start = start; 38 this.start = start;
39 this.end = end; 39 this.end = end;
40 this.wstunit = wstunit; 40 this.wstunit = wstunit;
41 this.minq = minq; 41 this.minq = minq;
42 this.maxq = maxq; 42 this.maxq = maxq;
43 this.infourl = infourl; 43 this.officialnumber = official;
44 this.gaugeinfo = gaugeinfo; 44 this.gaugeinfo = gaugeinfo;
45 } 45 }
46 46
47 47
48 public boolean isKmUp() { 48 public boolean isKmUp() {
49 return this.kmup; 49 return this.kmup;
97 public Double getMaxQ() { 97 public Double getMaxQ() {
98 return maxq; 98 return maxq;
99 } 99 }
100 100
101 /** 101 /**
102 * Returns the URL where to find additional information about this river 102 * Returns the official number of the river
103 */ 103 */
104 public String getInfoURL() { 104 public Long getOfficialNumber() {
105 return this.infourl; 105 return this.officialnumber;
106 } 106 }
107 } 107 }

http://dive4elements.wald.intevation.org