Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java @ 942:796c54058dc4
Added artifacts/states for WMS background an river axis and a configuration for the output-defaults.
flys-artifacts/trunk@2351 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jul 2011 10:13:25 +0000 |
parents | |
children | 5de90b0cff8e |
comparison
equal
deleted
inserted
replaced
941:1b509e4cf99b | 942:796c54058dc4 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import java.util.ArrayList; | |
4 import java.util.List; | |
5 | |
6 import org.apache.log4j.Logger; | |
7 | |
8 import de.intevation.artifacts.Artifact; | |
9 import de.intevation.artifacts.CallContext; | |
10 | |
11 import de.intevation.artifactdatabase.state.DefaultFacet; | |
12 | |
13 import de.intevation.flys.artifacts.FLYSArtifact; | |
14 | |
15 import de.intevation.flys.artifacts.states.DefaultState.ComputeType; | |
16 | |
17 | |
18 public class WMSLayerFacet extends DefaultFacet { | |
19 | |
20 protected ComputeType type; | |
21 protected List<String> layers; | |
22 protected String stateId; | |
23 protected String hash; | |
24 protected String url; | |
25 | |
26 | |
27 private static final Logger logger = Logger.getLogger(WMSLayerFacet.class); | |
28 | |
29 | |
30 public WMSLayerFacet(int index, String name, String description) { | |
31 this(index, name, description, ComputeType.FEED, null, null); | |
32 } | |
33 | |
34 | |
35 public WMSLayerFacet( | |
36 int index, | |
37 String name, | |
38 String description, | |
39 ComputeType type, | |
40 String stateId, | |
41 String hash | |
42 | |
43 ) { | |
44 super(index, name, description); | |
45 this.layers = new ArrayList<String>(); | |
46 this.type = type; | |
47 this.stateId = stateId; | |
48 this.hash = hash; | |
49 } | |
50 | |
51 | |
52 public WMSLayerFacet( | |
53 int index, | |
54 String name, | |
55 String description, | |
56 ComputeType type, | |
57 String stateId, | |
58 String hash, | |
59 String url | |
60 ) { | |
61 this(index, name, description, type, stateId, hash); | |
62 this.url = url; | |
63 } | |
64 | |
65 | |
66 public void addLayer(String name) { | |
67 if (name != null && name.length() > 0) { | |
68 layers.add(name); | |
69 } | |
70 } | |
71 | |
72 | |
73 public Object getData(Artifact artifact, CallContext context) { | |
74 return null; | |
75 } | |
76 } |