Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/collections/FLYSArtifactCollection.java @ 5866:9a6741ccf6d4
FLYS artifacts: Renamed FLYSContext(Factory) to RiverContext(Factory).
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:14:30 +0200 |
parents | 73da40528cf2 |
children |
comparison
equal
deleted
inserted
replaced
5865:73da40528cf2 | 5866:9a6741ccf6d4 |
---|---|
36 import org.dive4elements.artifacts.ArtifactNamespaceContext; | 36 import org.dive4elements.artifacts.ArtifactNamespaceContext; |
37 import org.dive4elements.artifacts.CallContext; | 37 import org.dive4elements.artifacts.CallContext; |
38 import org.dive4elements.artifacts.CallMeta; | 38 import org.dive4elements.artifacts.CallMeta; |
39 import org.dive4elements.artifacts.common.utils.XMLUtils; | 39 import org.dive4elements.artifacts.common.utils.XMLUtils; |
40 import org.dive4elements.river.artifacts.FLYSArtifact; | 40 import org.dive4elements.river.artifacts.FLYSArtifact; |
41 import org.dive4elements.river.artifacts.context.FLYSContext; | 41 import org.dive4elements.river.artifacts.context.RiverContext; |
42 import org.dive4elements.river.exports.OutGenerator; | 42 import org.dive4elements.river.exports.OutGenerator; |
43 import org.dive4elements.river.exports.OutputHelper; | 43 import org.dive4elements.river.exports.OutputHelper; |
44 import org.dive4elements.river.utils.RiverUtils; | 44 import org.dive4elements.river.utils.RiverUtils; |
45 | 45 |
46 /** | 46 /** |
304 protected Settings createInitialOutputSettings( | 304 protected Settings createInitialOutputSettings( |
305 CallContext cc, | 305 CallContext cc, |
306 CollectionAttribute attr, | 306 CollectionAttribute attr, |
307 String out | 307 String out |
308 ) { | 308 ) { |
309 OutGenerator outGen = FLYSContext.getOutGenerator(cc, out, null); | 309 OutGenerator outGen = RiverContext.getOutGenerator(cc, out, null); |
310 | 310 |
311 if (outGen == null) { | 311 if (outGen == null) { |
312 return null; | 312 return null; |
313 } | 313 } |
314 | 314 |
365 OutGenerator generator = null; | 365 OutGenerator generator = null; |
366 if (type != null | 366 if (type != null |
367 && type.length() > 0 | 367 && type.length() > 0 |
368 && type.indexOf("chartinfo") > 0) | 368 && type.indexOf("chartinfo") > 0) |
369 { | 369 { |
370 generator = FLYSContext.getOutGenerator(context, type, subtype); | 370 generator = RiverContext.getOutGenerator(context, type, subtype); |
371 } | 371 } |
372 else { | 372 else { |
373 generator = FLYSContext.getOutGenerator(context, name, subtype); | 373 generator = RiverContext.getOutGenerator(context, name, subtype); |
374 } | 374 } |
375 | 375 |
376 if (generator == null) { | 376 if (generator == null) { |
377 log.error("There is no generator specified for output: " + name); | 377 log.error("There is no generator specified for output: " + name); |
378 // TODO Throw an exception. | 378 // TODO Throw an exception. |
474 ArtifactDatabase db, | 474 ArtifactDatabase db, |
475 CallContext context, | 475 CallContext context, |
476 AttributeParser aParser, | 476 AttributeParser aParser, |
477 String[] uuids) | 477 String[] uuids) |
478 { | 478 { |
479 FLYSContext flysContext = RiverUtils.getFlysContext(context); | 479 RiverContext flysContext = RiverUtils.getFlysContext(context); |
480 StateEngine engine = (StateEngine) flysContext.get( | 480 StateEngine engine = (StateEngine) flysContext.get( |
481 FLYSContext.STATE_ENGINE_KEY); | 481 RiverContext.STATE_ENGINE_KEY); |
482 | 482 |
483 if (engine == null) { | 483 if (engine == null) { |
484 log.error("buildOutAttributes: engine == null"); | 484 log.error("buildOutAttributes: engine == null"); |
485 return null; | 485 return null; |
486 } | 486 } |