# HG changeset patch # User Tim Englich # Date 1255681041 0 # Node ID 4896d4f94bdc27e3eca26ef5149aae9f0003220c # Parent 81031e7ce2b877e072ad76fd8003d59cc3dc3fe4 Bugfix ChartValues were not Recalculated after feed was called second Time. gnv-artifacts/trunk@226 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 81031e7ce2b8 -r 4896d4f94bdc gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Fri Oct 16 08:09:31 2009 +0000 +++ b/gnv-artifacts/ChangeLog Fri Oct 16 08:17:21 2009 +0000 @@ -1,9 +1,15 @@ 2009-10-16 Tim Englich + * src/main/java/de/intevation/gnv/transition/OutputTransitionBase.java (putInputData): + Bugfix ChartValues were not Recalculated after feed was called second Time. + +2009-10-16 Tim Englich + * src/test/ressources/conf.xml: Bugfix in MinMaxTransition the Maxvalue was not the correct Value. 2009-10-16 Tim Englich + * src/main/java/de/intevation/gnv/transition/CoordinateSelectionTransition.java (convert2DisplayCoordinate): Added Transformation from WKT-Coordinate Reperesentation to BSH-Coordinate Representation. issue38 diff -r 81031e7ce2b8 -r 4896d4f94bdc gnv-artifacts/src/main/java/de/intevation/gnv/transition/OutputTransitionBase.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/OutputTransitionBase.java Fri Oct 16 08:09:31 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/OutputTransitionBase.java Fri Oct 16 08:17:21 2009 +0000 @@ -151,6 +151,18 @@ } return null; } + + protected void removeChartResult(String uuid) { + log.debug("OutputTransitionBase.getChartResult"); + if (CacheFactory.getInstance().isInitialized()) { + String key = uuid + super.getID(); + log.debug("Hash for Queryelements: " + key); + Element value = CacheFactory.getInstance().getCache().get(key); + if (value != null) { + CacheFactory.getInstance().getCache().remove(key); + } + } + } /** * @see de.intevation.gnv.transition.TransitionBase#purifyResult(java.util.Collection, @@ -166,4 +178,23 @@ } } + /** + * @see de.intevation.gnv.transition.TransitionBase#putInputData(java.util.Collection, java.lang.String) + */ + @Override + public void putInputData(Collection inputData, + String uuid) + throws TransitionException { + log.debug("OutputTransitionBase.putInputData"); + this.removeChartResult(uuid); + super.putInputData(inputData, uuid); + } + + public void out(String outputMode, Collection inputData, + OutputStream outputStream, String uuid, CallMeta callMeta) + throws TransitionException { + } + + + }