changeset 4263:6abc8507e3c8

Add operator and station id to the artifact xml Return also the operator and id in the xml description returned by MeasurementStationInfoService.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 26 Oct 2012 11:15:10 +0200
parents 87c3a3ac6ddf
children 31c017420502
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java	Fri Oct 26 11:06:50 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java	Fri Oct 26 11:15:10 2012 +0200
@@ -50,6 +50,11 @@
                 ec.addAttr(eg, "name", name, true);
             }
 
+            Integer id = mstation.getId();
+            if (id != null) {
+                ec.addAttr(eg, "id", Integer.toString(id), true);
+            }
+
             String type = mstation.getMeasurementType();
             if (type != null) {
                 ec.addAttr(eg, "type", type, true);
@@ -78,6 +83,11 @@
                 }
             }
 
+            String moperator = mstation.getOperator();
+            if (moperator != null) {
+                ec.addAttr(eg, "operator", moperator, true);
+            }
+
             egs.appendChild(eg);
         }
 

http://dive4elements.wald.intevation.org