Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 3785:a5f65e8983be
Merged revisions 5501-5502,5504-5508,5511-5513,5516-5519 via svnmerge from
file:///home/clients/bsh/bsh-generischer-viewer/Material/SVN/flys-artifacts/trunk
........
r5501 | felix | 2012-09-18 11:49:45 +0200 (Di, 18 Sep 2012) | 1 line
fix issue865 - missing showarea theme prop.
........
r5502 | clins | 2012-09-18 12:18:30 +0200 (Di, 18 Sep 2012) | 1 line
Add robustness checks to prevent NPEs
........
r5504 | felix | 2012-09-18 14:03:15 +0200 (Di, 18 Sep 2012) | 1 line
i18n for area label (fix issue487).
........
r5505 | clins | 2012-09-18 16:19:59 +0200 (Di, 18 Sep 2012) | 1 line
Update themes to show point descriptions
........
r5506 | rrenkert | 2012-09-18 17:00:30 +0200 (Di, 18 Sep 2012) | 3 lines
Removed incorrect characteristic diameter.
........
r5507 | rrenkert | 2012-09-18 17:03:20 +0200 (Di, 18 Sep 2012) | 3 lines
Fixed some stupid bugs in bed quality data factory and calculation.
........
r5508 | teichmann | 2012-09-18 17:45:49 +0200 (Di, 18 Sep 2012) | 1 line
The usual whitespace and import cleanups.
........
r5511 | teichmann | 2012-09-18 18:24:51 +0200 (Di, 18 Sep 2012) | 1 line
Use generics aware Collections.emptyList().
........
r5512 | teichmann | 2012-09-18 20:36:52 +0200 (Di, 18 Sep 2012) | 1 line
Some more little steps towards "Auslagerung extremer Wasserspiegellagen".
........
r5513 | clins | 2012-09-18 23:38:19 +0200 (Di, 18 Sep 2012) | 1 line
A and B facets of fix analyis are now deactivated by default
........
r5516 | bricks | 2012-09-19 10:45:51 +0200 (Mi, 19 Sep 2012) | 2 lines
Add the gauge station to the GaugeOverviewInfoService xml response
........
r5517 | rrenkert | 2012-09-19 10:50:23 +0200 (Mi, 19 Sep 2012) | 3 lines
Added CSV export to bed quality calculation.
........
r5518 | bricks | 2012-09-19 11:04:04 +0200 (Mi, 19 Sep 2012) | 2 lines
Fix date in changelog entry
........
r5519 | teichmann | 2012-09-19 11:17:14 +0200 (Mi, 19 Sep 2012) | 1 line
Removed trailing whitespace.
........
flys-artifacts/tags/2.9.1@5531 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 19 Sep 2012 14:58:31 +0000 |
parents | 53aa395a29e0 |
children | 3aec5a42696a |
comparison
equal
deleted
inserted
replaced
3784:9f9d5ada96ca | 3785:a5f65e8983be |
---|---|
1 package de.intevation.flys.collections; | 1 package de.intevation.flys.collections; |
2 | |
3 import java.io.IOException; | |
4 import java.io.OutputStream; | |
5 import java.util.ArrayList; | |
6 import java.util.HashMap; | |
7 import java.util.List; | |
8 import java.util.Map; | |
9 import java.util.Set; | |
10 | |
11 import javax.xml.xpath.XPathConstants; | |
12 | |
13 import org.apache.log4j.Logger; | |
14 import org.w3c.dom.Document; | |
15 import org.w3c.dom.Element; | |
16 import org.w3c.dom.Node; | |
17 import org.w3c.dom.NodeList; | |
2 | 18 |
3 import de.intevation.artifactdatabase.Backend; | 19 import de.intevation.artifactdatabase.Backend; |
4 import de.intevation.artifactdatabase.Backend.PersistentArtifact; | 20 import de.intevation.artifactdatabase.Backend.PersistentArtifact; |
5 import de.intevation.artifactdatabase.DefaultArtifactCollection; | 21 import de.intevation.artifactdatabase.DefaultArtifactCollection; |
6 import de.intevation.artifactdatabase.state.Output; | 22 import de.intevation.artifactdatabase.state.Output; |
17 import de.intevation.flys.artifacts.context.FLYSContext; | 33 import de.intevation.flys.artifacts.context.FLYSContext; |
18 import de.intevation.flys.exports.OutGenerator; | 34 import de.intevation.flys.exports.OutGenerator; |
19 import de.intevation.flys.exports.OutputHelper; | 35 import de.intevation.flys.exports.OutputHelper; |
20 import de.intevation.flys.utils.FLYSUtils; | 36 import de.intevation.flys.utils.FLYSUtils; |
21 | 37 |
22 import java.io.IOException; | |
23 import java.io.OutputStream; | |
24 import java.util.ArrayList; | |
25 import java.util.HashMap; | |
26 import java.util.List; | |
27 import java.util.Map; | |
28 import java.util.Set; | |
29 | |
30 import javax.xml.xpath.XPathConstants; | |
31 | |
32 import org.apache.log4j.Logger; | |
33 import org.w3c.dom.Document; | |
34 import org.w3c.dom.Element; | |
35 import org.w3c.dom.Node; | |
36 import org.w3c.dom.NodeList; | |
37 | |
38 /** | 38 /** |
39 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 39 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
40 */ | 40 */ |
41 public class FLYSArtifactCollection extends DefaultArtifactCollection { | 41 public class FLYSArtifactCollection extends DefaultArtifactCollection { |
42 /** The logger used in this class. */ | 42 /** The logger used in this class. */ |
123 AttributeParser oldParser, | 123 AttributeParser oldParser, |
124 String[] uuids | 124 String[] uuids |
125 ) { | 125 ) { |
126 CollectionAttribute cAttribute = | 126 CollectionAttribute cAttribute = |
127 buildOutAttributes(db, context, oldParser, uuids); | 127 buildOutAttributes(db, context, oldParser, uuids); |
128 | |
129 if (cAttribute == null) { | |
130 log.warn("mergeAttributes: cAttribute == null"); | |
131 return null; | |
132 } | |
128 | 133 |
129 cAttribute.setLoadedRecommendations( | 134 cAttribute.setLoadedRecommendations( |
130 getLoadedRecommendations(oldParser.getAttributeDocument())); | 135 getLoadedRecommendations(oldParser.getAttributeDocument())); |
131 | 136 |
132 saveCollectionAttribute(db, context, cAttribute); | 137 saveCollectionAttribute(db, context, cAttribute); |
448 ArtifactDatabase db, | 453 ArtifactDatabase db, |
449 CallContext context, | 454 CallContext context, |
450 AttributeParser aParser, | 455 AttributeParser aParser, |
451 String[] uuids) | 456 String[] uuids) |
452 { | 457 { |
453 Document doc = XMLUtils.newDocument(); | |
454 | |
455 FLYSContext flysContext = FLYSUtils.getFlysContext(context); | 458 FLYSContext flysContext = FLYSUtils.getFlysContext(context); |
456 StateEngine engine = (StateEngine) flysContext.get( | 459 StateEngine engine = (StateEngine) flysContext.get( |
457 FLYSContext.STATE_ENGINE_KEY); | 460 FLYSContext.STATE_ENGINE_KEY); |
458 | 461 |
459 if (engine == null) { | 462 if (engine == null) { |