Mercurial > dive4elements > river
changeset 3944:5fea100c5334
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
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 21 Sep 2012 09:50:33 +0000 |
parents | a5b003595d6c |
children | 26084ee6d352 |
files | flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/model/Gauge.java flys-backend/src/main/java/de/intevation/flys/model/River.java |
diffstat | 3 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <bjoern.ricks@intevation.de> + + * 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 <ingo@intevation.de> * src/main/java/de/intevation/flys/importer/ImportSedimentDensity.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 :
--- 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 :