changeset 781:5dd94448538d

Added timegap definitions as attribute to each state. gnv-artifacts/trunk@860 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 29 Mar 2010 10:02:42 +0000
parents c4156275c1e1
children 725f7573b6ea
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/TimeGap.java
diffstat 3 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Mar 29 09:35:44 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 29 10:02:42 2010 +0000
@@ -1,3 +1,17 @@
+2010-03-29  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java:
+	  Each TimeSeriesArtifacts stores information about its TimeGapDefinitions,
+	  otherwise we are not able to continue with an artifact after a restart of
+	  the artifact server.
+
+	  TODO: The information about TimeGapDefinitions are equal for each type of
+	  artifacts. It would be better to store these definitions on a central
+	  place (i.e. see ChartTheme configuration).
+	
+	* src/main/java/de/intevation/gnv/timeseries/gap/TimeGap.java: Implements
+	  Serializable.
+
 2010-03-29	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/gnv/**/*.java:
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Mon Mar 29 09:35:44 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java	Mon Mar 29 10:02:42 2010 +0000
@@ -107,7 +107,7 @@
     private static Logger log = Logger
             .getLogger(TimeSeriesOutputState.class);
 
-    private static List<TimeGap> timeGapDefinitions = null;
+    private List<TimeGap> timeGapDefinitions = null;
 
     protected String domainLable = "chart.timeseries.title.xaxis";
 
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/TimeGap.java	Mon Mar 29 09:35:44 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/timeseries/gap/TimeGap.java	Mon Mar 29 10:02:42 2010 +0000
@@ -1,6 +1,8 @@
 package de.intevation.gnv.timeseries.gap;
 
-public interface TimeGap {
+import java.io.Serializable;
+
+public interface TimeGap extends Serializable {
 
     public final static String TIME_UNIT_MINUTE = "m";
     public final static String TIME_UNIT_HOUR = "h";

http://dive4elements.wald.intevation.org