[Dive4elements-commits] [PATCH 1 of 2] Discharge Info Service: Added 'bfg-id' to result document

Wald Commits scm-commit at wald.intevation.org
Tue May 7 12:31:38 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1367919182 -7200
# Node ID b8adee716970da09e9f37c72692575481b68f1a9
# Parent  6dfd967dcae9c2416c30eeca2e8fad6c736e3299
Discharge Info Service: Added 'bfg-id' to result document.

diff -r 6dfd967dcae9 -r b8adee716970 artifacts/src/main/java/org/dive4elements/river/artifacts/services/DischargeInfoService.java
--- 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);


More information about the Dive4elements-commits mailing list