comparison artifacts/src/main/java/org/dive4elements/river/exports/sq/SQOverviewGenerator.java @ 8225:724081af301c

Pass request document to the context injectors.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 08 Sep 2014 16:14:43 +0200
parents 1d3d61c8f596
children
comparison
equal deleted inserted replaced
8224:18c737ec098b 8225:724081af301c
92 context, 92 context,
93 name); 93 name);
94 /* Make sure master is also set in those */ 94 /* Make sure master is also set in those */
95 g.setMasterArtifact(master); 95 g.setMasterArtifact(master);
96 96
97 if (g == null) {
98 log.debug("generator is null.");
99 return;
100 }
101
102 OutputHelper helper = new OutputHelper(master.identifier()); 97 OutputHelper helper = new OutputHelper(master.identifier());
103 Document collectionAttribute = collection.getAttribute(); 98 Document collectionAttribute = collection.getAttribute();
104 99
105 try { 100 try {
106 Document cAttr = getAttribute(context, collectionAttribute, name); 101 Document cAttr = getAttribute(context, collectionAttribute, name);
107 g.init(name, request, out, context); 102 g.init(name, request, out, context);
108 103
109 helper.doOut(g, name, name, cAttr, context); 104 helper.doOut(g, name, name, cAttr, context, request);
110 JFreeChart chart = g.generateChart(); 105 JFreeChart chart = g.generateChart();
111 chart.removeLegend(); 106 chart.removeLegend();
112 charts.add(chart); 107 charts.add(chart);
113 } 108 }
114 catch (IOException e) { 109 catch (IOException e) {

http://dive4elements.wald.intevation.org