Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java @ 953:6f8873fca927
WMSLayerFacets can have an extent now.
flys-artifacts/trunk@2371 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 20 Jul 2011 12:37:54 +0000 |
parents | 5de90b0cff8e |
children | eeebf8514c7f |
comparison
equal
deleted
inserted
replaced
952:7399401f728c | 953:6f8873fca927 |
---|---|
26 protected ComputeType type; | 26 protected ComputeType type; |
27 protected List<String> layers; | 27 protected List<String> layers; |
28 protected String stateId; | 28 protected String stateId; |
29 protected String hash; | 29 protected String hash; |
30 protected String url; | 30 protected String url; |
31 protected String extent; | |
31 | 32 |
32 | 33 |
33 private static final Logger logger = Logger.getLogger(WMSLayerFacet.class); | 34 private static final Logger logger = Logger.getLogger(WMSLayerFacet.class); |
34 | 35 |
35 | 36 |
74 layers.add(name); | 75 layers.add(name); |
75 } | 76 } |
76 } | 77 } |
77 | 78 |
78 | 79 |
80 public void setExtent(String extent) { | |
81 if (extent != null) { | |
82 this.extent = extent; | |
83 } | |
84 } | |
85 | |
86 | |
79 public Object getData(Artifact artifact, CallContext context) { | 87 public Object getData(Artifact artifact, CallContext context) { |
80 return null; | 88 return null; |
81 } | 89 } |
82 | 90 |
83 | 91 |
92 ec.addAttr(facet, "description", description, true); | 100 ec.addAttr(facet, "description", description, true); |
93 ec.addAttr(facet, "index", String.valueOf(index), true); | 101 ec.addAttr(facet, "index", String.valueOf(index), true); |
94 ec.addAttr(facet, "name", name, true); | 102 ec.addAttr(facet, "name", name, true); |
95 ec.addAttr(facet, "url", url, true); | 103 ec.addAttr(facet, "url", url, true); |
96 ec.addAttr(facet, "layers", layers.get(0), true); | 104 ec.addAttr(facet, "layers", layers.get(0), true); |
105 ec.addAttr(facet, "extent", extent != null ? extent : "", true); | |
97 | 106 |
98 return facet; | 107 return facet; |
99 } | 108 } |
100 } | 109 } |
101 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 110 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |