comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/State.java @ 363:4d3298295a64

Enhanced the State interface with a new method initialize() which might be used to initialize the State based on a model Artifact. artifacts/trunk@3623 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 09 Jan 2012 08:15:35 +0000
parents 8a3ddd374dd1
children 81ae7948bff0
comparison
equal deleted inserted replaced
362:5b6ba54d488a 363:4d3298295a64
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.Artifact;
19 import de.intevation.artifacts.CallContext; 19 import de.intevation.artifacts.CallContext;
20 import de.intevation.artifacts.CallMeta;
20 21
21 import de.intevation.artifactdatabase.data.StateData; 22 import de.intevation.artifactdatabase.data.StateData;
22 23
23 24
24 /** 25 /**
89 */ 90 */
90 public void setup(Node config); 91 public void setup(Node config);
91 92
92 93
93 /** 94 /**
95 * Initializes the internal state of this State based on an other State.
96 *
97 * @param orig The owner Artifact or the original State.
98 * @param context The context object.
99 * @param callMeta The CallMeta of the current call.
100 */
101 public void initialize(Artifact orig, Object context, CallMeta callMeta);
102
103
104 /**
94 * This method is called when an artifacts retrieves a describe request. It 105 * This method is called when an artifacts retrieves a describe request. It
95 * creates the user interface description of the current state. 106 * creates the user interface description of the current state.
96 * 107 *
97 * @param artifact A reference to the artifact this state belongs to. 108 * @param artifact A reference to the artifact this state belongs to.
98 * @param document Describe doucment. 109 * @param document Describe doucment.

http://dive4elements.wald.intevation.org