changeset 279:5ed1afd81569

ProtocolUtils write the index value of a facet into the document. artifacts/trunk@2135 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 16 Jun 2011 13:28:58 +0000
parents 9ad188df72f2
children 7fbe674d758a
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jun 16 13:24:54 2011 +0000
+++ b/ChangeLog	Thu Jun 16 13:28:58 2011 +0000
@@ -1,3 +1,8 @@
+2011-06-16  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java:
+	  Write index of a facet into the document.
+
 2011-06-16  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/Facet.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java	Thu Jun 16 13:24:54 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java	Thu Jun 16 13:28:58 2011 +0000
@@ -198,8 +198,12 @@
             Element newFacet = createArtNode(
                 creator,
                 "facet",
-                new String[] { "name", "description" },
-                new String[] { f.getName(), f.getDescription() });
+                new String[] { "index", "name", "description" },
+                new String[] {
+                    String.valueOf(f.getIndex()),
+                    f.getName(),
+                    f.getDescription()
+                });
 
             facet.appendChild(newFacet);
         }

http://dive4elements.wald.intevation.org