changeset 303:2d393c8bd38c

Write the name of an artifact into the DESCRIBE document. flys-artifacts/trunk@1672 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 12 Apr 2011 13:42:14 +0000
parents f526f02e8ce2
children 992afc0299cd
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Apr 12 07:49:36 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Apr 12 13:42:14 2011 +0000
@@ -1,3 +1,10 @@
+2011-04-12  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
+	  The name of the artifact 'winfo' is written into the DESCRIBE document
+	  now. We need this to have a proper way to distinguish between different
+	  artifacts in the UI.
+
 2011-04-12  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java: Bugfix:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Tue Apr 12 07:49:36 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Tue Apr 12 13:42:14 2011 +0000
@@ -92,6 +92,11 @@
         ProtocolUtils.appendState(creator, root, current);
         ProtocolUtils.appendReachableStates(creator, root, reachable);
 
+        Element name = ProtocolUtils.createArtNode(
+            creator, "name",
+            new String[] { "value" },
+            new String[] { getName() });
+
         Element ui = ProtocolUtils.createArtNode(
             creator, "ui", null, null);
 
@@ -116,6 +121,7 @@
 
         ui.appendChild(staticUI);
 
+        root.appendChild(name);
         root.appendChild(ui);
         root.appendChild(outs);
 

http://dive4elements.wald.intevation.org