Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 156:d03b8bbeb853
Added the hash code of an artifact to the artifact part of the collection's DESCRIBE document.
flys-artifacts/trunk@1598 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 28 Mar 2011 16:58:17 +0000 |
parents | 2649ada6b053 |
children | 3419b1c8ca28 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Mar 28 16:36:13 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Mon Mar 28 16:58:17 2011 +0000 @@ -90,11 +90,12 @@ log.debug("Append artifact '"+ uuid +"' to collection description"); + PersistentArtifact pArtifact = backend.getArtifact(uuid); + Artifact artifact = pArtifact.getArtifact(); + Element ci = ec.create("artifact"); ec.addAttr(ci, "uuid", uuid, true); - - PersistentArtifact pArtifact = backend.getArtifact(uuid); - Artifact artifact = pArtifact.getArtifact(); + ec.addAttr(ci, "hash", artifact.hash(), true); // XXX I am not sure if it works well every time with an empty document // in the describe operation of an artifact.