Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java @ 207:d87347142702
Store the Results of an Artifact not in the Artifact but in an ehcache instance. issue3
gnv-artifacts/trunk@263 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 23 Oct 2009 08:50:50 +0000 |
parents | f2c76f35da5a |
children | 3dcd2b0b456e |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java Fri Oct 23 07:37:39 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java Fri Oct 23 08:50:50 2009 +0000 @@ -119,16 +119,13 @@ log.error(e, e); throw new TransitionException(e); } - Collection<KeyValueDescibeData> parameters = this - .getParameters(); - Collection<KeyValueDescibeData> measurements = this - .getMeasurements(); - Collection<KeyValueDescibeData> dates = this - .getDates(); + Collection<KeyValueDescibeData> parameters = this.getParameters(uuid); + Collection<KeyValueDescibeData> measurements = this.getMeasurements(uuid); + Collection<KeyValueDescibeData> dates = this.getDates(uuid); ChartStyle chartStyle = this .creatStyle(chartWidth, chartHeight); ChartLabels chartLables = new ChartLabels(this.getFisName(callMeta.getLanguages())+" "+this - .getSelectedFeatureName(), this.domainLable); + .getSelectedFeatureName(uuid), this.domainLable); this.createChart(outputStream, parameters, measurements,dates, chartStyle, chartLables, uuid); } else if (outputMode.equalsIgnoreCase("csv")) { @@ -238,9 +235,9 @@ return doc; } - protected String getSelectedFeatureName() { + protected String getSelectedFeatureName(String uuid) { Collection<KeyValueDescibeData> values = this - .getCollection(featureValuesName); + .getCollection(featureValuesName, uuid); if (values != null) { Iterator<KeyValueDescibeData> it = values.iterator(); while (it.hasNext()) { @@ -297,15 +294,15 @@ return returnValue; } - protected Collection<KeyValueDescibeData> getParameters() { - return this.getCollection(parameterValuesName); + protected Collection<KeyValueDescibeData> getParameters(String uuid) { + return this.getCollection(parameterValuesName, uuid); } - protected Collection<KeyValueDescibeData> getMeasurements() { - return this.getCollection(measuremenValueName); + protected Collection<KeyValueDescibeData> getMeasurements(String uuid) { + return this.getCollection(measuremenValueName, uuid); } - protected Collection<KeyValueDescibeData> getDates() { - return this.getCollection(dateValueName); + protected Collection<KeyValueDescibeData> getDates(String uuid) { + return this.getCollection(dateValueName,uuid); } @Override @@ -339,8 +336,9 @@ * @return */ protected Collection<KeyValueDescibeData> getCollection( - String collectionName) { - Iterator<Object> it = this.descibeData.iterator(); + String collectionName, + String uuid) { + Iterator<Object> it = this.getDescibeData(uuid).iterator(); while (it.hasNext()) { Object o = it.next();