diff gnv-artifacts/ChangeLog @ 607:292fbcd5e9ac

Parted the cache blob into pieces and changed the way how user input is stored on each state. gnv-artifacts/trunk@673 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 10 Feb 2010 11:43:35 +0000
parents 9efc1c256dbb
children 74dfb9346574
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Tue Feb 09 15:23:07 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Wed Feb 10 11:43:35 2010 +0000
@@ -1,3 +1,45 @@
+2010-02-10  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+	
+	* src/main/java/de/intevation/gnv/state/State.java: New method 'feed' in
+	  this interface. It should be used to feed this state with new data 
+	  selected by the user.
+
+	* src/main/java/de/intevation/gnv/artifacts/GNVArtifactBase.java: Use new
+	  method 'feed' instead of 'putInputData' to feed the state with new data.
+
+	* src/main/java/de/intevation/gnv/state/profile/horizontal/NorthSouthEastWestState.java,
+	  src/main/java/de/intevation/gnv/state/CoordinateSelectionState.java,
+	  src/main/java/de/intevation/gnv/state/SingleInputState.java: Method
+	  'purifyResult' just cleans values from database and returns it. DO NOT
+	  put these results into cache at this place!
+	
+	* src/main/java/de/intevation/gnv/state/InputData.java,
+	  src/main/java/de/intevation/gnv/state/DefaultInputData.java: Some new
+	  methods to store objects in such an InputData object. Objects are used to
+	  store MinMaxDescribeData objects for example. And further new methods to
+	  store a description for each InputData object. This is used to render the
+	  static GUI part. Until now, this object stored the id's of the
+	  selected parameter, only - which are useless to show in GUI. The
+	  description should be the string shown in the GUI, later.
+
+	* src/main/java/de/intevation/gnv/state/MinMaxState.java: This type of state
+	  overrides 'feed' and 'appendToStaticNode'. 'feed' takes user input and
+	  parses min and max values from it (used for time periods for example).
+	  'appendToStaticNode' will append these fields to the static GUI part.
+
+	* src/main/java/de/intevation/gnv/state/StateBase.java: Removed the big
+	  cache blob and parted it into pieces. Each state will now put its
+	  database data into cache. In this way, we are able to reuse these data
+	  when the user steps back in history. Data, inserted by the user, will be
+	  stored via 'feed'. Special input fields like multi selection or ranges
+	  need to override this method to parse the input data and store them in
+	  special objects.
+
+	  TODOs:
+		- The output modes are based on this big cache blob and search for
+		  parameterid, measurementid and dateid in it.
+		  TimeSeriesOutputState.getCollection() needs to be adapted!
+
 2010-02-09  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/java/de/intevation/gnv/artifacts/services/requestobjects/DefaultFIS.java (addParameter),

http://dive4elements.wald.intevation.org