Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/DischargeInfoService.java @ 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 | 0c61dba8c0de |
children | d6bf8353e0fc |
comparison
equal
deleted
inserted
replaced
5909:6dfd967dcae9 | 5910:b8adee716970 |
---|---|
119 else { | 119 else { |
120 long now = System.currentTimeMillis(); | 120 long now = System.currentTimeMillis(); |
121 discharge.setAttribute("end", String.valueOf(now)); | 121 discharge.setAttribute("end", String.valueOf(now)); |
122 } | 122 } |
123 | 123 |
124 String bfgId = dt.getBfgId(); | |
125 if (bfgId != null) { | |
126 discharge.setAttribute("bfg-id", bfgId); | |
127 } | |
128 | |
124 all.appendChild(discharge); | 129 all.appendChild(discharge); |
125 } | 130 } |
126 result.appendChild(all); | 131 result.appendChild(all); |
127 return result; | 132 return result; |
128 } | 133 } |