# HG changeset patch # User Björn Ricks # Date 1351242910 -7200 # Node ID 6abc8507e3c81a24aec56cc9b09a3be50ab44c2d # Parent 87c3a3ac6ddf056161b1fe1cbfb868536a2fd29c Add operator and station id to the artifact xml Return also the operator and id in the xml description returned by MeasurementStationInfoService. diff -r 87c3a3ac6ddf -r 6abc8507e3c8 flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java --- 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); }