changeset 169:2f575d594fdb

The document returned by the createCollection() method will now contain the uuid of the created collection. artifacts/trunk@1394 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 04 Mar 2011 09:56:35 +0000
parents f70977cf2faf
children ac0f8bd97277
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Mar 04 09:13:18 2011 +0000
+++ b/ChangeLog	Fri Mar 04 09:56:35 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-04  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
+	  The createCollection() method returns a document that will now contain
+	  the uuid of the created artifact collection.
+
 2011-03-04  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Fri Mar 04 09:13:18 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Fri Mar 04 09:56:35 2011 +0000
@@ -1201,7 +1201,10 @@
         Element root = ec.create("result");
         result.appendChild(root);
 
-        result.setTextContent(OPERATION_SUCCESSFUL);
+        Element acElement = ec.create("artifact-collection");
+        ec.addAttr(acElement, "uuid", ac.identifier());
+
+        root.appendChild(acElement);
 
         return result;
     }

http://dive4elements.wald.intevation.org