comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 493:cef17cc90fd0

Changed some method signatures of the State interface. Use CallContext objects instead of CallMeta objects which are a subset of CallContext. gnv-artifacts/trunk@570 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jan 2010 10:58:46 +0000
parents d265f5dc2979
children 9681ac6b6527
comparison
equal deleted inserted replaced
492:79e80c289018 493:cef17cc90fd0
5 5
6 import de.intevation.artifactdatabase.Config; 6 import de.intevation.artifactdatabase.Config;
7 import de.intevation.artifactdatabase.XMLUtils; 7 import de.intevation.artifactdatabase.XMLUtils;
8 8
9 import de.intevation.artifacts.ArtifactNamespaceContext; 9 import de.intevation.artifacts.ArtifactNamespaceContext;
10 import de.intevation.artifacts.CallContext;
10 import de.intevation.artifacts.CallMeta; 11 import de.intevation.artifacts.CallMeta;
11 12
12 import de.intevation.gnv.artifacts.GNVArtifactBase; 13 import de.intevation.gnv.artifacts.GNVArtifactBase;
13 14
14 import de.intevation.gnv.artifacts.cache.CacheFactory; 15 import de.intevation.gnv.artifacts.cache.CacheFactory;
374 375
375 /** 376 /**
376 * @see de.intevation.gnv.state.State#advance(java.lang.String, 377 * @see de.intevation.gnv.state.State#advance(java.lang.String,
377 * de.intevation.artifacts.CallMeta) 378 * de.intevation.artifacts.CallMeta)
378 */ 379 */
379 public void advance(String uuid, CallMeta callMeta) 380 public void advance(String uuid, CallContext context)
380 throws StateException { 381 throws StateException
382 {
381 } 383 }
382 384
383 public void initialize(String uuid, CallMeta callMeta) 385 public void initialize(String uuid, CallContext context)
384 throws StateException { 386 throws StateException
387 {
385 log.debug("StateBase.initialize"); 388 log.debug("StateBase.initialize");
386 try { 389 try {
387 String[] filterValues = this 390 String[] filterValues = this
388 .generateFilterValuesFromInputData(); 391 .generateFilterValuesFromInputData();
389 Collection<Result> result = null; 392 Collection<Result> result = null;
544 /** 547 /**
545 * @see de.intevation.gnv.state.State#describe(org.w3c.dom.Document, 548 * @see de.intevation.gnv.state.State#describe(org.w3c.dom.Document,
546 * org.w3c.dom.Node, de.intevation.artifacts.CallMeta, 549 * org.w3c.dom.Node, de.intevation.artifacts.CallMeta,
547 * java.lang.String) 550 * java.lang.String)
548 */ 551 */
549 public void describe(Document document, Node rootNode, CallMeta callMeta,String uuid) { 552 public void describe(
553 Document document,
554 Node rootNode,
555 CallContext context,
556 String uuid
557 ) {
550 log.debug("StateBase.describe"); 558 log.debug("StateBase.describe");
559 CallMeta callMeta = context.getMeta();
551 560
552 List<Object> descibeData = this.getDescibeData(uuid); 561 List<Object> descibeData = this.getDescibeData(uuid);
553 if (descibeData != null) { 562 if (descibeData != null) {
554 Iterator<Object> it = descibeData.iterator(); 563 Iterator<Object> it = descibeData.iterator();
555 564

http://dive4elements.wald.intevation.org