Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 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 | d15f09d5b89d |
children | 39c0ff00d188 |
comparison
equal
deleted
inserted
replaced
283:7c33cac15134 | 284:084d68974d4a |
---|---|
1230 Element root = ec.create("result"); | 1230 Element root = ec.create("result"); |
1231 result.appendChild(root); | 1231 result.appendChild(root); |
1232 | 1232 |
1233 Element acElement = ec.create("artifact-collection"); | 1233 Element acElement = ec.create("artifact-collection"); |
1234 ec.addAttr(acElement, "uuid", ac.identifier(), true); | 1234 ec.addAttr(acElement, "uuid", ac.identifier(), true); |
1235 ec.addAttr(acElement, "ttl", String.valueOf(ac.getTTL()), true); | |
1235 | 1236 |
1236 root.appendChild(acElement); | 1237 root.appendChild(acElement); |
1237 | 1238 |
1238 return result; | 1239 return result; |
1239 } | 1240 } |