# HG changeset patch # User Ingo Weinzierl # Date 1300981706 0 # Node ID 70cbbe144931dafb2d173e1ce511d095b4494367 # Parent 87a7773030b51e1e5f247f4eaf04225ae6890a4d Added a describe() method for ArtifactCollections. artifacts/trunk@1558 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 87a7773030b5 -r 70cbbe144931 ChangeLog --- a/ChangeLog Thu Mar 24 15:41:25 2011 +0000 +++ b/ChangeLog Thu Mar 24 15:48:26 2011 +0000 @@ -1,3 +1,9 @@ +2011-03-24 Ingo Weinzierl + + * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java, + artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java: + There is a describe() method for ArtifactCollections, now. + 2011-03-24 Ingo Weinzierl * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: diff -r 87a7773030b5 -r 70cbbe144931 artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java Thu Mar 24 15:41:25 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java Thu Mar 24 15:48:26 2011 +0000 @@ -26,6 +26,8 @@ import de.intevation.artifacts.CallContext; import de.intevation.artifacts.User; +import de.intevation.artifacts.common.utils.XMLUtils; + /** * Trivial implementation of an artifact collection. Useful to be subclassed. @@ -104,6 +106,13 @@ } + public Document describe(CallContext context) { + logger.debug("DefaultArtifactCollection.describe: " + identifier); + + return XMLUtils.newDocument(); + } + + /** * Set a new identifier for this collection. * @param identifier New identifier for this collection. diff -r 87a7773030b5 -r 70cbbe144931 artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java --- a/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java Thu Mar 24 15:41:25 2011 +0000 +++ b/artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java Thu Mar 24 15:48:26 2011 +0000 @@ -68,6 +68,9 @@ Object context, Document data); + + Document describe(CallContext context); + //TODO: create LifeCycle interface /** * Called from artifact database when an artifact is