Mercurial > dive4elements > river
changeset 5910:b8adee716970
Discharge Info Service: Added 'bfg-id' to result document.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 07 May 2013 11:33:02 +0200 |
parents | 6dfd967dcae9 |
children | b96a293d30f3 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/services/DischargeInfoService.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DischargeInfoService.java Tue May 07 11:00:20 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/DischargeInfoService.java Tue May 07 11:33:02 2013 +0200 @@ -121,6 +121,11 @@ discharge.setAttribute("end", String.valueOf(now)); } + String bfgId = dt.getBfgId(); + if (bfgId != null) { + discharge.setAttribute("bfg-id", bfgId); + } + all.appendChild(discharge); } result.appendChild(all);