Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/StaticFLYSArtifact.java @ 1765:5d8b3880a553
Do not store association of states to facets, let artifacts keep facets in a pure list.
flys-artifacts/trunk@3083 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 26 Oct 2011 12:23:47 +0000 |
parents | 5de90b0cff8e |
children | c62ff9e72cea |
comparison
equal
deleted
inserted
replaced
1764:87c82499b98f | 1765:5d8b3880a553 |
---|---|
56 | 56 |
57 State state = getCurrentState(cc); | 57 State state = getCurrentState(cc); |
58 List<Output> list = state.getOutputs(); | 58 List<Output> list = state.getOutputs(); |
59 | 59 |
60 if (list != null && list.size() > 0) { | 60 if (list != null && list.size() > 0) { |
61 List<Facet> fs = facets.get(state.getID()); | 61 if (facets != null && facets.size() > 0) { |
62 if (fs != null && fs.size() > 0) { | 62 List<Output> generated = generateOutputs(list, facets); |
63 List<Output> generated = generateOutputs(list, fs); | |
64 | 63 |
65 logger.debug("Found " + fs.size() + " current facets."); | 64 logger.debug("Found " + facets.size() + " current facets."); |
66 if (!generated.isEmpty()) { | 65 if (!generated.isEmpty()) { |
67 ProtocolUtils.appendOutputModes( | 66 ProtocolUtils.appendOutputModes( |
68 doc, outs, generated); | 67 doc, outs, generated); |
69 } | 68 } |
70 } | 69 } |