Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ATExporter.java @ 3422:118fe1cc8cc8
OutGenerators got a setCollection() method; analogous to setMasterArtifact(). Registered the SQOverviewGenerator as OutGenerator for 'sq_overview' Output.
flys-artifacts/trunk@5076 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 20 Jul 2012 06:50:25 +0000 |
parents | 0318fa6f0844 |
children | f86c8d75fd85 |
comparison
equal
deleted
inserted
replaced
3421:c44ff50f4970 | 3422:118fe1cc8cc8 |
---|---|
15 import de.intevation.artifactdatabase.state.Settings; | 15 import de.intevation.artifactdatabase.state.Settings; |
16 | 16 |
17 import de.intevation.flys.artifacts.FLYSArtifact; | 17 import de.intevation.flys.artifacts.FLYSArtifact; |
18 | 18 |
19 import de.intevation.flys.artifacts.model.WQ; | 19 import de.intevation.flys.artifacts.model.WQ; |
20 import de.intevation.flys.collections.FLYSArtifactCollection; | |
20 | 21 |
21 import de.intevation.flys.utils.FLYSUtils; | 22 import de.intevation.flys.utils.FLYSUtils; |
22 | 23 |
23 | 24 |
24 public class ATExporter | 25 public class ATExporter |
31 protected WQ data; | 32 protected WQ data; |
32 protected CallContext context; | 33 protected CallContext context; |
33 protected OutputStream out; | 34 protected OutputStream out; |
34 protected FLYSArtifact master; | 35 protected FLYSArtifact master; |
35 | 36 |
37 protected FLYSArtifactCollection collection; | |
38 | |
39 | |
36 public ATExporter() { | 40 public ATExporter() { |
37 } | 41 } |
38 | 42 |
39 @Override | 43 @Override |
40 public void init(Document request, OutputStream out, CallContext context) { | 44 public void init(Document request, OutputStream out, CallContext context) { |
41 this.context = context; | 45 this.context = context; |
42 this.out = out; | 46 this.out = out; |
43 } | 47 } |
44 | 48 |
49 | |
45 @Override | 50 @Override |
46 public void setMasterArtifact(Artifact master) { | 51 public void setMasterArtifact(Artifact master) { |
47 this.master = (FLYSArtifact) master; | 52 this.master = (FLYSArtifact) master; |
53 } | |
54 | |
55 @Override | |
56 public void setCollection(FLYSArtifactCollection collection) { | |
57 this.collection = collection; | |
48 } | 58 } |
49 | 59 |
50 @Override | 60 @Override |
51 public void doOut( | 61 public void doOut( |
52 ArtifactAndFacet artifactf, | 62 ArtifactAndFacet artifactf, |