diff artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java @ 244:3d14fe6e05f7

Improved the describe() of a State - a reference to an artifact has been added. artifacts/trunk@1683 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 14 Apr 2011 08:26:25 +0000
parents b75fca1ac215
children 55d08706ccf2
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Wed Apr 13 15:19:59 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java	Thu Apr 14 08:26:25 2011 +0000
@@ -15,6 +15,7 @@
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 
+import de.intevation.artifacts.Artifact;
 import de.intevation.artifacts.CallContext;
 
 import de.intevation.artifactdatabase.data.StateData;
@@ -83,12 +84,14 @@
      * This method is called when an artifacts retrieves a describe request. It
      * creates the user interface description of the current state.
      *
+     * @param artifact A reference to the artifact this state belongs to.
      * @param document Describe doucment.
      * @param rootNode Parent node for all new elements.
      * @param context The CallContext.
      * @param uuid The uuid of an artifact.
      */
     public Element describe(
+        Artifact    artifact,
         Document    document,
         Node        rootNode,
         CallContext context,

http://dive4elements.wald.intevation.org