Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/RiverAxisArtifact.java @ 952:7399401f728c
Adapted the method of FLYSArtifact.setup() which has been changed in the artifact package.
flys-artifacts/trunk@2370 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 12:34:20 +0000 |
parents | 796c54058dc4 |
children | ae198bef4ba0 |
comparison
equal
deleted
inserted
replaced
951:9686e1132a81 | 952:7399401f728c |
---|---|
4 import java.util.List; | 4 import java.util.List; |
5 | 5 |
6 import org.apache.log4j.Logger; | 6 import org.apache.log4j.Logger; |
7 | 7 |
8 import de.intevation.artifacts.Artifact; | 8 import de.intevation.artifacts.Artifact; |
9 import de.intevation.artifacts.CallMeta; | |
9 | 10 |
10 import de.intevation.artifactdatabase.state.Facet; | 11 import de.intevation.artifactdatabase.state.Facet; |
11 | 12 |
12 import de.intevation.flys.artifacts.states.DefaultState; | 13 import de.intevation.flys.artifacts.states.DefaultState; |
13 | 14 |
26 return NAME; | 27 return NAME; |
27 } | 28 } |
28 | 29 |
29 | 30 |
30 @Override | 31 @Override |
31 protected void initialize(Artifact artifact, Object context) { | 32 protected void initialize(Artifact artifact, Object context, CallMeta meta) { |
32 logger.debug("Initialize internal state with: "+ artifact.identifier()); | 33 logger.debug("Initialize internal state with: "+ artifact.identifier()); |
33 | 34 |
34 FLYSArtifact flys = (FLYSArtifact) artifact; | 35 FLYSArtifact flys = (FLYSArtifact) artifact; |
35 addData("river", flys.getData("river")); | 36 addData("river", flys.getData("river")); |
36 | 37 |
37 List<Facet> fs = new ArrayList<Facet>(); | 38 List<Facet> fs = new ArrayList<Facet>(); |
38 | 39 |
39 // TODO Add CallMeta | 40 // TODO Add CallMeta |
40 DefaultState state = (DefaultState) getCurrentState(context); | 41 DefaultState state = (DefaultState) getCurrentState(context); |
41 state.computeInit(this, hash(), null, fs); | 42 state.computeInit(this, hash(), meta, fs); |
42 | 43 |
43 if (!fs.isEmpty()) { | 44 if (!fs.isEmpty()) { |
44 facets.put(getCurrentStateId(), fs); | 45 facets.put(getCurrentStateId(), fs); |
45 } | 46 } |
46 } | 47 } |