annotate gnv-artifacts/src/main/java/de/intevation/gnv/transition/OutputTransitionBase.java @ 325:3eff9241ea1e

Refactoring of the Transitionmodel. Now each Transition is responsible to allocate the Data which is required to describe or feed it. gnv-artifacts/trunk@390 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 01 Dec 2009 15:58:02 +0000
parents 91c37bf28c0e
children 1c427acb6c76
rev   line source
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 /**
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2 *
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4 package de.intevation.gnv.transition;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
6 import java.io.OutputStream;
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
7 import java.util.ArrayList;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
8 import java.util.Collection;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
10
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11 import org.apache.log4j.Logger;
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
12 import org.w3c.dom.Document;
204
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
13 import org.w3c.dom.Element;
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
14 import org.w3c.dom.Node;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 import org.w3c.dom.NodeList;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17 import de.intevation.artifactdatabase.Config;
117
ef157bd2fa92 LanguageSupport integrated
Tim Englich <tim.englich@intevation.de>
parents: 99
diff changeset
18 import de.intevation.artifacts.CallMeta;
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
19 import de.intevation.gnv.artifacts.cache.CacheFactory;
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
20 import de.intevation.gnv.geobackend.base.Result;
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
21 import de.intevation.gnv.geobackend.base.query.QueryExecutor;
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
22 import de.intevation.gnv.geobackend.base.query.QueryExecutorFactory;
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
23 import de.intevation.gnv.geobackend.base.query.exception.QueryException;
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
24 import de.intevation.gnv.transition.exception.TransitionException;
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
25
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 /**
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27 * @author Tim Englich <tim.englich@intevation.de>
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
28 *
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
29 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 public abstract class OutputTransitionBase extends TransitionBase implements
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
31 OutputTransition {
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
32
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
33 /**
91
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
34 * The UID of this Class
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
35 */
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
36 private static final long serialVersionUID = -1718732895737303823L;
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
37
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 /**
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39 * the logger, used to log exceptions and additonaly information
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 private static Logger log = Logger.getLogger(OutputTransitionBase.class);
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
42
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
43 /**
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
44 * The different Outputmodes which are provided by an OutputTransition
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
45 */
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46 protected Collection<OutputMode> outputModes = null;
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
47
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
48 protected String queryODVID = null;
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
49
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
50 /**
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
51 * Constructor
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
52 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
53 public OutputTransitionBase() {
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
54 super();
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55 }
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
56
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
57 /**
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
58 * @see de.intevation.gnv.transition.OutputTransition#getOutputModes()
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
59 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
60 public Collection<OutputMode> getOutputModes() {
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
61 log.debug("OutputTransitionBase.getOutputModes");
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
62 return this.outputModes;
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
63 }
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
64
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
65 /**
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
66 * @see de.intevation.gnv.transition.TransitionBase#setup(org.w3c.dom.Node)
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
67 */
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
68 @Override
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
69 public void setup(Node configuration) {
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
70 log.debug("OutputTransitionBase.setup");
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
71 super.setup(configuration);
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
72
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
73 this.queryODVID = Config.getStringXPath(configuration,"queryID-odv");
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
74
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
75 NodeList outputModeList = Config.getNodeSetXPath(configuration,
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
76 "outputsModes/outputsMode");
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
77 if (outputModeList != null) {
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
78 log.debug(outputModeList.getLength() + " were found.");
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
79 this.outputModes = new ArrayList<OutputMode>(outputModeList
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
80 .getLength());
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
81 for (int i = 0; i < outputModeList.getLength(); i++) {
204
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
82 Element currentNode = (Element)outputModeList.item(i);
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
83 String name = currentNode.getAttribute("name");
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
84 String description =currentNode.getAttribute("description");
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
85 String mimeType = currentNode.getAttribute("mime-type");
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
86 NodeList inputValuesList = Config.getNodeSetXPath(currentNode,
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
87 "parameters/inputvalue");
91
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
88 Collection<InputValue> inputParameters = null;
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
89 if (inputValuesList != null) {
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
90 inputParameters = new ArrayList<InputValue>(inputValuesList
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
91 .getLength());
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
92 for (int j = 0; j < inputValuesList.getLength(); j++) {
204
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
93 Element currentInputValuesNode = (Element)inputValuesList.item(j);
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
94 String inputValueName = currentInputValuesNode.getAttribute("name");
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
95 String inputValueType = currentInputValuesNode.getAttribute("type");
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
96 String defaultValue =currentInputValuesNode.getAttribute("value");
91
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
97 boolean isMultiselect = false;
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
98 InputValue inputValue = new DefaultInputValue(
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
99 inputValueName, inputValueType, defaultValue,
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
100 isMultiselect);
91
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
101 inputParameters.add(inputValue);
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
102 }
bd284d8306db Added Support for Patameters in OutputModes
Tim Englich <tim.englich@intevation.de>
parents: 86
diff changeset
103 }
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
104
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
105 OutputMode outputMode = new DefaultOutputMode(name,
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
106 description, mimeType, inputParameters);
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
107 log.debug(outputMode.toString());
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
108 this.outputModes.add(outputMode);
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
109
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
110 }
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
111 }
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
112 }
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
113
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
114 /**
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
115 * @see de.intevation.gnv.transition.TransitionBase#advance()
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
116 */
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
117 @Override
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
118 public void advance(String uuid, CallMeta callMeta)
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
119 throws TransitionException {
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
120 }
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
121
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
122 @Override
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
123 public void initialize(String uuid, CallMeta callMeta)
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
124 throws TransitionException {
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
125 }
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
126
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
127 public void out(Document format, Collection<InputData> inputData,
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
128 OutputStream outputStream, String uuid, CallMeta callMeta)
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
129 throws TransitionException {
86
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
130 }
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
131
5d4f5d26bb7a Some Codecleanup done
Tim Englich <tim.englich@intevation.de>
parents: 64
diff changeset
132 /**
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
133 * @see de.intevation.gnv.transition.OutputTransition#out(java.lang.String,
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
134 * java.util.Collection, java.io.OutputStream)
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
135 */
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
136 public void out(String outputMode, Collection<InputData> inputData,
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
137 OutputStream outputStream) throws TransitionException {
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
138 }
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
139
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
140 /**
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
141 * @return
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
142 */
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
143 protected Collection<Result> getChartResult(String uuid) {
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
144 log.debug("OutputTransitionBase.getChartResult");
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
145 Collection<Result> result = null;
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
146 if (CacheFactory.getInstance().isInitialized()) {
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
147 String key = uuid + super.getID();
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
148 log.debug("Hash for Queryelements: " + key);
204
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
149 net.sf.ehcache.Element value = CacheFactory.getInstance().getCache().get(key);
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
150 if (value != null) {
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
151 result = (Collection<Result>) (value.getObjectValue());
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
152 }else{
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
153 result = this.getData(this.queryID);
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
154 if (CacheFactory.getInstance().isInitialized()) {
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
155 CacheFactory.getInstance().getCache().put(new net.sf.ehcache.Element(key, result));
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
156 }
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
157
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
158 }
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
159 }
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
160 return result;
99
bb45c5097cb6 ehcache Integration for storing the chartresultvalues
Tim Englich <tim.englich@intevation.de>
parents: 91
diff changeset
161 }
300
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
162
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
163 protected Object getChartFromCache(String uuid) {
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
164 log.debug("Fetch chart [" + uuid + "] from cache");
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
165 CacheFactory cacheFactory = CacheFactory.getInstance();
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
166 if (cacheFactory.isInitialized()) {
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
167 String key = "chart_" + uuid + super.getID();
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
168 net.sf.ehcache.Element object = cacheFactory.getCache().get(key);
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
169
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
170 if (object != null) {
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
171 return object.getObjectValue();
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
172 }
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
173 }
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
174 return null;
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
175 }
182
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
176
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
177 protected Collection<Result> getODVResult(String uuid) {
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
178 log.debug("OutputTransitionBase.getODVResult");
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
179 // TODO add Caching? I think it's not nessessary
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
180 Collection<Result> returnValue = null;
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
181 if (this.queryODVID != null){
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
182 returnValue = this.getData(this.queryODVID);
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
183 }else{
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
184 log.warn("No Query for ODV Data is defined.");
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
185 }
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
186 return returnValue;
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
187 }
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
188
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
189 /**
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
190 * @param returnValue
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
191 * @return
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
192 */
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
193 private Collection<Result> getData(String queryID) {
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
194 log.debug("OutputTransitionBase.getData");
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
195 Collection<Result> returnValue = null;
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
196 try {
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
197 String[] filterValues = this.generateFilterValuesFromInputData();
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
198 try {
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
199 QueryExecutor queryExecutor = QueryExecutorFactory
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
200 .getInstance()
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
201 .getQueryExecutor();
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
202 returnValue = queryExecutor.executeQuery(queryID,filterValues);
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
203 } catch (RuntimeException e) {
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
204 log.error(e, e);
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
205 }
325
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
206 } catch (QueryException e) {
3eff9241ea1e Refactoring of the Transitionmodel.
Tim Englich <tim.englich@intevation.de>
parents: 305
diff changeset
207 log.error(e, e);
232
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
208 }
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
209 return returnValue;
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
210 }
3d6d89bcbf42 Added special Data-Selection to the ODV-Exports of TimeSeries on TimeSeriesPoints. issue68
Tim Englich <tim.englich@intevation.de>
parents: 220
diff changeset
211
182
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
212 protected void removeChartResult(String uuid) {
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
213 log.debug("OutputTransitionBase.getChartResult");
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
214 if (CacheFactory.getInstance().isInitialized()) {
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
215 String key = uuid + super.getID();
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
216 log.debug("Hash for Queryelements: " + key);
204
734ac082c8d1 Split the Configuration File in several small Documents to speed up the Artifactinstantiation and also make the administration of the Artifactdatabase easier. issue40 and issue59
Tim Englich <tim.englich@intevation.de>
parents: 182
diff changeset
217 net.sf.ehcache.Element value = CacheFactory.getInstance().getCache().get(key);
182
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
218 if (value != null) {
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
219 CacheFactory.getInstance().getCache().remove(key);
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
220 }
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
221 }
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
222 }
171
7fb9441dd8af Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents: 117
diff changeset
223
305
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
224 protected void removeChart(String uuid) {
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
225 log.debug("OutputTransitionBase.removeChart from cache");
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
226
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
227 CacheFactory cacheFactory = CacheFactory.getInstance();
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
228 if (cacheFactory.isInitialized()) {
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
229 String key = "chart_" + uuid + super.getID();
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
230 net.sf.ehcache.Element object = cacheFactory.getCache().get(key);
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
231 if (object != null)
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
232 cacheFactory.getCache().remove(key);
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
233 }
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
234 }
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
235
300
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
236 protected void purifyChart(Object chart, String uuid) {
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
237 log.debug("Prufify chart [" + uuid + "]");
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
238 CacheFactory cacheFactory = CacheFactory.getInstance();
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
239 if (cacheFactory.isInitialized()) {
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
240 String key = "chart_" + uuid + getID();
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
241 cacheFactory.getCache().put(new net.sf.ehcache.Element(key, chart));
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
242 }
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
243 }
6a3a02e004d9 Refactored process of chart generation. Charts will be generated via Chart-Interface from rev351 and no more via factory classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 232
diff changeset
244
182
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
245 /**
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
246 * @see de.intevation.gnv.transition.TransitionBase#putInputData(java.util.Collection, java.lang.String)
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
247 */
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
248 @Override
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
249 public void putInputData(Collection<InputData> inputData,
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
250 String uuid)
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
251 throws TransitionException {
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
252 log.debug("OutputTransitionBase.putInputData");
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
253 this.removeChartResult(uuid);
305
91c37bf28c0e Remove chart from cache when data which is displayed in chart has changed.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 300
diff changeset
254 this.removeChart(uuid);
182
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
255 super.putInputData(inputData, uuid);
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
256 }
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
257
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
258 public void out(String outputMode, Collection<InputData> inputData,
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
259 OutputStream outputStream, String uuid, CallMeta callMeta)
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
260 throws TransitionException {
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
261 }
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
262
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
263
4896d4f94bdc Bugfix ChartValues were not Recalculated after feed was called second Time.
Tim Englich <tim.englich@intevation.de>
parents: 171
diff changeset
264
64
5db77e0a8594 Integrated Output Methods and Interfacsstructure
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
265 }

http://dive4elements.wald.intevation.org