Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java @ 439:8975de9d7483
Loop through configuration to chart generation.
gnv-artifacts/trunk@487 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 28 Dec 2009 16:24:05 +0000 |
parents | bed9735adf84 |
children | 211cad2fb5ba |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java Mon Dec 28 11:50:27 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/OutputStateBase.java Mon Dec 28 16:24:05 2009 +0000 @@ -16,7 +16,10 @@ import org.w3c.dom.NodeList; import de.intevation.artifactdatabase.Config; + import de.intevation.artifacts.CallMeta; +import de.intevation.artifacts.CallContext; + import de.intevation.gnv.artifacts.cache.CacheFactory; import de.intevation.gnv.artifacts.ressource.RessourceFactory; import de.intevation.gnv.geobackend.base.Result; @@ -142,15 +145,15 @@ /** * @return */ - protected Object getChartResult(String uuid) { + protected Object getChartResult(String uuid, CallContext callContext) { log.debug("OutputStateBase.getChartResult"); - Collection<Result> result = null; + Object result = null; if (CacheFactory.getInstance().isInitialized()) { String key = uuid + super.getID(); log.debug("Hash for Queryelements: " + key); net.sf.ehcache.Element value = CacheFactory.getInstance().getCache().get(key); if (value != null) { - result = (Collection<Result>) (value.getObjectValue()); + result = value.getObjectValue(); }else{ result = this.getData(this.queryID); if (CacheFactory.getInstance().isInitialized()) { @@ -162,7 +165,7 @@ return result; } - protected Object getChartFromCache(String uuid) { + protected Object getChartFromCache(String uuid, CallContext callContext) { log.debug("Fetch chart [" + uuid + "] from cache"); CacheFactory cacheFactory = CacheFactory.getInstance(); if (cacheFactory.isInitialized()) {