changeset 284:084d68974d4a

The ttl is now contained in the document that is returned after a collection has been created. artifacts/trunk@2179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 16:16:16 +0000
parents 7c33cac15134
children f5a0f90bcc6f
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jun 21 15:18:38 2011 +0000
+++ b/ChangeLog	Tue Jun 21 16:16:16 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-21  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java:
+	  Add the time-to-live of a collection to the document that is returned
+	  after the collection has been created.
+
 2011-06-21	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultFacet.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Tue Jun 21 15:18:38 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java	Tue Jun 21 16:16:16 2011 +0000
@@ -1232,6 +1232,7 @@
 
         Element acElement = ec.create("artifact-collection");
         ec.addAttr(acElement, "uuid", ac.identifier(), true);
+        ec.addAttr(acElement, "ttl", String.valueOf(ac.getTTL()), true);
 
         root.appendChild(acElement);
 

http://dive4elements.wald.intevation.org