comparison artifacts/src/main/java/org/dive4elements/river/exports/OutputHelper.java @ 6564:42856353a222

OutputHelper: Fix misleading debug output copy/pasted from D4EArtifactCollection.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 12 Jul 2013 11:18:11 +0200
parents 60b94dec104b
children 1b35b2ddfc28
comparison
equal deleted inserted replaced
6563:ec32ccf7a753 6564:42856353a222
69 throws IOException 69 throws IOException
70 { 70 {
71 boolean debug = log.isDebugEnabled(); 71 boolean debug = log.isDebugEnabled();
72 72
73 if (debug) { 73 if (debug) {
74 log.debug("D4EArtifactCollection.doOut: " + outName); 74 log.debug("OutputHelper.doOut: " + outName);
75 } 75 }
76 76
77 ThemeList themeList = new ThemeList(attributes); 77 ThemeList themeList = new ThemeList(attributes);
78 78
79 List<ArtifactAndFacet> dataProviders = 79 List<ArtifactAndFacet> dataProviders =
152 { 152 {
153 boolean debug = log.isDebugEnabled(); 153 boolean debug = log.isDebugEnabled();
154 154
155 if (debug) { 155 if (debug) {
156 log.debug( 156 log.debug(
157 "D4EArtifactCollection.getFacetThemeFromAttribute(facet=" 157 "OutputHelper.getFacetThemeFromAttribute(facet="
158 + facet + ", index=" + index + ")"); 158 + facet + ", index=" + index + ")");
159 } 159 }
160 160
161 ArtifactDatabase db = context.getDatabase(); 161 ArtifactDatabase db = context.getDatabase();
162 CallMeta meta = context.getMeta(); 162 CallMeta meta = context.getMeta();
233 String uuid, 233 String uuid,
234 Document attr, 234 Document attr,
235 Theme t, 235 Theme t,
236 CallContext context) 236 CallContext context)
237 { 237 {
238 log.debug("D4EArtifactCollection.addThemeToAttribute: " + uuid); 238 log.debug("OutputHelper.addThemeToAttribute: " + uuid);
239 239
240 if (t == null) { 240 if (t == null) {
241 log.warn("Theme is empty - cancel adding it to attribute!"); 241 log.warn("Theme is empty - cancel adding it to attribute!");
242 return; 242 return;
243 } 243 }
378 * @return an Artifact. 378 * @return an Artifact.
379 */ 379 */
380 protected Artifact getArtifact(String uuid, CallContext context) 380 protected Artifact getArtifact(String uuid, CallContext context)
381 throws ArtifactDatabaseException 381 throws ArtifactDatabaseException
382 { 382 {
383 log.debug("D4EArtifactCollection.getArtifact"); 383 log.debug("OutputHelper.getArtifact");
384 384
385 Backend backend = Backend.getInstance(); 385 Backend backend = Backend.getInstance();
386 PersistentArtifact persistent = backend.getArtifact(uuid); 386 PersistentArtifact persistent = backend.getArtifact(uuid);
387 387
388 return persistent != null ? persistent.getArtifact() : null; 388 return persistent != null ? persistent.getArtifact() : null;
407 CallContext context) 407 CallContext context)
408 { 408 {
409 boolean debug = log.isDebugEnabled(); 409 boolean debug = log.isDebugEnabled();
410 410
411 if (debug) { 411 if (debug) {
412 log.debug("D4EArtifactCollection.initItemAttribute"); 412 log.debug("OutputHelper.initItemAttribute");
413 } 413 }
414 414
415 Theme t = getThemeForFacet(uuid, facet, pattern, index, outName, context); 415 Theme t = getThemeForFacet(uuid, facet, pattern, index, outName, context);
416 416
417 if (t == null) { 417 if (t == null) {
445 String pattern, 445 String pattern,
446 int index, 446 int index,
447 String outName, 447 String outName,
448 CallContext context) 448 CallContext context)
449 { 449 {
450 log.info("D4EArtifactCollection.getThemeForFacet: " + facet); 450 log.info("OutputHelper.getThemeForFacet: " + facet);
451 451
452 RiverContext flysContext = context instanceof RiverContext 452 RiverContext flysContext = context instanceof RiverContext
453 ? (RiverContext) context 453 ? (RiverContext) context
454 : (RiverContext) context.globalContext(); 454 : (RiverContext) context.globalContext();
455 455

http://dive4elements.wald.intevation.org