Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSDBArtifact.java @ 2672:5afccab9aac1
Modified floodmap specific datacage configuration and improved WMS hws layer.
flys-artifacts/trunk@4361 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 08 May 2012 13:55:59 +0000 |
parents | 0da8874bd378 |
children | f5af3adb3b95 |
comparison
equal
deleted
inserted
replaced
2671:055315495f8d | 2672:5afccab9aac1 |
---|---|
103 public static abstract class WMSDBState extends DefaultState { | 103 public static abstract class WMSDBState extends DefaultState { |
104 private static final Logger logger = Logger.getLogger(WMSDBState.class); | 104 private static final Logger logger = Logger.getLogger(WMSDBState.class); |
105 | 105 |
106 protected FLYSArtifact artifact; | 106 protected FLYSArtifact artifact; |
107 | 107 |
108 protected String name; | |
109 | |
110 | |
108 public WMSDBState() {} | 111 public WMSDBState() {} |
109 | 112 |
110 public WMSDBState(FLYSArtifact artifact) { | 113 public WMSDBState(FLYSArtifact artifact) { |
111 this.artifact = artifact; | 114 this.artifact = artifact; |
115 this.name = null; | |
112 } | 116 } |
113 | 117 |
114 @Override | 118 @Override |
115 public Object computeInit( | 119 public Object computeInit( |
116 FLYSArtifact artifact, | 120 FLYSArtifact artifact, |
221 | 225 |
222 protected String getLabelItem() { | 226 protected String getLabelItem() { |
223 return null; | 227 return null; |
224 } | 228 } |
225 | 229 |
230 /** | |
231 * Returns the name of the WMS layer. This method extracts the name | |
232 * from 'ids' data string. It is expected, that the 'ids' string is | |
233 * seperated by ';' and that the name is placed at index 1. | |
234 * | |
235 * @return the name of the WMS layer. | |
236 */ | |
237 public String getName() { | |
238 if (name == null) { | |
239 String ids = artifact.getDataAsString("ids"); | |
240 | |
241 String parts[] = ids.split(";"); | |
242 name = parts[1]; | |
243 } | |
244 | |
245 return name; | |
246 } | |
247 | |
226 protected abstract String getFacetType(); | 248 protected abstract String getFacetType(); |
227 | 249 |
228 protected abstract String getTitle(CallMeta meta); | 250 protected abstract String getTitle(CallMeta meta); |
229 | 251 |
230 protected abstract String getUrl(); | 252 protected abstract String getUrl(); |