# HG changeset patch # User Ingo Weinzierl # Date 1308669283 0 # Node ID d15f09d5b89d7294db4415bab57100581ec6400e # Parent 942a54670a720dc4cc4f6b4d20353ff712f7716f Put the ttl of each collection into the document that contains the user collections. artifacts/trunk@2176 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 942a54670a72 -r d15f09d5b89d ChangeLog --- a/ChangeLog Tue Jun 21 10:57:03 2011 +0000 +++ b/ChangeLog Tue Jun 21 15:14:43 2011 +0000 @@ -1,3 +1,9 @@ +2011-06-21 Ingo Weinzierl + + * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: + Put the time-to-live of a collection into the document with the list of + user collections. + 2011-06-21 Ingo Weinzierl * artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java, diff -r 942a54670a72 -r d15f09d5b89d artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java Tue Jun 21 10:57:03 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java Tue Jun 21 15:14:43 2011 +0000 @@ -1170,6 +1170,7 @@ Element collection = ec.create("artifact-collection"); ec.addAttr(collection, "name", c.getName(), true); ec.addAttr(collection, "uuid", c.identifier(), true); + ec.addAttr(collection, "ttl", String.valueOf(c.getTTL()), true); Date creationTime = c.getCreationTime(); String creation = creationTime != null