Mercurial > dive4elements > framework
comparison 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 |
comparison
equal
deleted
inserted
replaced
243:33b9cc23ac9b | 244:3d14fe6e05f7 |
---|---|
13 | 13 |
14 import org.w3c.dom.Document; | 14 import org.w3c.dom.Document; |
15 import org.w3c.dom.Element; | 15 import org.w3c.dom.Element; |
16 import org.w3c.dom.Node; | 16 import org.w3c.dom.Node; |
17 | 17 |
18 import de.intevation.artifacts.Artifact; | |
18 import de.intevation.artifacts.CallContext; | 19 import de.intevation.artifacts.CallContext; |
19 | 20 |
20 import de.intevation.artifactdatabase.data.StateData; | 21 import de.intevation.artifactdatabase.data.StateData; |
21 | 22 |
22 | 23 |
81 | 82 |
82 /** | 83 /** |
83 * This method is called when an artifacts retrieves a describe request. It | 84 * This method is called when an artifacts retrieves a describe request. It |
84 * creates the user interface description of the current state. | 85 * creates the user interface description of the current state. |
85 * | 86 * |
87 * @param artifact A reference to the artifact this state belongs to. | |
86 * @param document Describe doucment. | 88 * @param document Describe doucment. |
87 * @param rootNode Parent node for all new elements. | 89 * @param rootNode Parent node for all new elements. |
88 * @param context The CallContext. | 90 * @param context The CallContext. |
89 * @param uuid The uuid of an artifact. | 91 * @param uuid The uuid of an artifact. |
90 */ | 92 */ |
91 public Element describe( | 93 public Element describe( |
94 Artifact artifact, | |
92 Document document, | 95 Document document, |
93 Node rootNode, | 96 Node rootNode, |
94 CallContext context, | 97 CallContext context, |
95 String uuid | 98 String uuid |
96 ); | 99 ); |