changeset 3895:9e2a720ceda0

Use fetchInfoURL instead of getInfoURL until the URL is fetched from the db flys-artifacts/trunk@5552 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 21 Sep 2012 10:49:25 +0000
parents 4aadcb90dc77
children 82109cea32d2
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Sep 21 10:04:12 2012 +0000
+++ b/flys-artifacts/ChangeLog	Fri Sep 21 10:49:25 2012 +0000
@@ -1,3 +1,9 @@
+2012-09-21	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java:
+	  Use Gauge and River fetchInfoURL instead of getInfoURL until the URLs are
+	  fetched from the db.
+
 2012-09-21	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Fix issue887 (HYKs in New Chart).
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 10:04:12 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java	Fri Sep 21 10:49:25 2012 +0000
@@ -67,7 +67,7 @@
         ec.addAttr(r, "kmup", Boolean.toString(river.getKmUp()), true);
         ec.addAttr(r, "minq", Double.toString(minmaxq[0]), true);
         ec.addAttr(r, "maxq", Double.toString(minmaxq[1]), true);
-        ec.addAttr(r, "info-url", river.getInfoURL(), true);
+        ec.addAttr(r, "info-url", river.fetchInfoURL(), true);
 
         Element egs = ec.create("gauges");
 
@@ -84,7 +84,7 @@
             if (name != null) {
                 ec.addAttr(eg, "name", gauge.getName(), true);
             }
-            ec.addAttr(eg, "info-url", gauge.getInfoURL(), true);
+            ec.addAttr(eg, "info-url", gauge.fetchInfoURL(), true);
 
             String aeo = getGaugeValue(gauge.getAeo());
             if (aeo != null) {

http://dive4elements.wald.intevation.org