changeset 218:70cbbe144931

Added a describe() method for ArtifactCollections. artifacts/trunk@1558 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 24 Mar 2011 15:48:26 +0000
parents 87a7773030b5
children cabe4c02ab64
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactCollection.java artifacts/src/main/java/de/intevation/artifacts/ArtifactCollection.java
diffstat 3 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <ingo@intevation.de>
+
+	* 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 <ingo@intevation.de>
 
 	* artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.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.
--- 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

http://dive4elements.wald.intevation.org