# HG changeset patch # User Bjoern Ricks # Date 1348221033 0 # Node ID 5fea100c533407f22bece778d57ce31fbaa8a36a # Parent a5b003595d6c88b050c484c3912e82e4f8eb1209 Add a new method to River and Gauge classes to return a http url for additional info about the gauge or river. flys-backend/trunk@5548 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a5b003595d6c -r 5fea100c5334 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Wed Sep 19 10:05:36 2012 +0000 +++ b/flys-backend/ChangeLog Fri Sep 21 09:50:33 2012 +0000 @@ -1,3 +1,10 @@ +2012-09-21 Björn Ricks + + * src/main/java/de/intevation/flys/model/River.java, + src/main/java/de/intevation/flys/model/Gauge.java: + Add new methods to return a HTTP URL for additional information about the + river or gauge. + 2012-09-19 Ingo Weinzierl * src/main/java/de/intevation/flys/importer/ImportSedimentDensity.java, diff -r a5b003595d6c -r 5fea100c5334 flys-backend/src/main/java/de/intevation/flys/model/Gauge.java --- a/flys-backend/src/main/java/de/intevation/flys/model/Gauge.java Wed Sep 19 10:05:36 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/Gauge.java Fri Sep 21 09:50:33 2012 +0000 @@ -326,5 +326,13 @@ return new MinMaxWQ(minw, maxw, minq, maxq); } + /** + * Returns a HTTP URL for additional information about this gauge + */ + public String getInfoURL() { + //FIXME fetch url from the database + return "https://flys-intern.intevation.de/Flys-3.0/"; + } + } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r a5b003595d6c -r 5fea100c5334 flys-backend/src/main/java/de/intevation/flys/model/River.java --- a/flys-backend/src/main/java/de/intevation/flys/model/River.java Wed Sep 19 10:05:36 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/River.java Fri Sep 21 09:50:33 2012 +0000 @@ -316,5 +316,13 @@ return result; } + + /** + * Returns a HTTP URL for additional information about this river + */ + public String getInfoURL() { + //FIXME fetch url from the database + return "https://flys-intern.intevation.de/Flys-3.0/"; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :