Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/sessionmodel/DefaultSessionModel.java @ 976:d1ed5c51c0de
Checkin of changes which are necessary for the checkin of Revision 1139.
gnv/trunk@1146 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 01 Jun 2010 17:46:03 +0000 |
parents | a88fc6320cf8 |
children | 28a0628b11b0 |
comparison
equal
deleted
inserted
replaced
975:5779220ebb80 | 976:d1ed5c51c0de |
---|---|
8 | 8 |
9 import de.intevation.gnv.artifactdatabase.objects.ArtifactDescription; | 9 import de.intevation.gnv.artifactdatabase.objects.ArtifactDescription; |
10 import de.intevation.gnv.artifactdatabase.objects.ArtifactObject; | 10 import de.intevation.gnv.artifactdatabase.objects.ArtifactObject; |
11 import de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet; | 11 import de.intevation.gnv.artifactdatabase.objects.ArtifactStatisticsSet; |
12 import de.intevation.gnv.artifactdatabase.objects.OutputMode; | 12 import de.intevation.gnv.artifactdatabase.objects.OutputMode; |
13 import de.intevation.gnv.artifactdatabase.objects.map.MapService; | |
13 | 14 |
14 /** | 15 /** |
15 * The default implementation of <code>SessionModel</code> which stores the | 16 * The default implementation of <code>SessionModel</code> which stores the |
16 * current artifact object and the digram options selected by the user. | 17 * current artifact object and the digram options selected by the user. |
17 * | 18 * |
18 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 19 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
19 * | 20 * |
20 */ | 21 */ |
21 public class DefaultSessionModel implements SessionModel { | 22 public class DefaultSessionModel implements SessionModel { |
23 | |
24 | |
22 | 25 |
23 /** | 26 /** |
24 * the logger, used to log exceptions and additonaly information | 27 * the logger, used to log exceptions and additonaly information |
25 */ | 28 */ |
26 private static Logger log = Logger.getLogger(DefaultSessionModel.class); | 29 private static Logger log = Logger.getLogger(DefaultSessionModel.class); |
58 /** | 61 /** |
59 * The Locale that currently should be used. | 62 * The Locale that currently should be used. |
60 */ | 63 */ |
61 private Locale currentLocale; | 64 private Locale currentLocale; |
62 | 65 |
66 /** | |
67 * The Mapservice containing all Layers that should be displayed. | |
68 */ | |
69 private MapService localMapService = null; | |
63 /** | 70 /** |
64 * Constructor | 71 * Constructor |
65 */ | 72 */ |
66 public DefaultSessionModel() { | 73 public DefaultSessionModel() { |
67 this(null); | 74 this(null); |
176 } | 183 } |
177 | 184 |
178 public void setCurrentLocale(Locale currentLocale) { | 185 public void setCurrentLocale(Locale currentLocale) { |
179 this.currentLocale = currentLocale; | 186 this.currentLocale = currentLocale; |
180 } | 187 } |
188 | |
189 public MapService getLocalMapService() { | |
190 return this.localMapService; | |
191 } | |
192 | |
193 public void setLocalMapService(MapService mapService) { | |
194 this.localMapService = mapService; | |
195 } | |
181 } | 196 } |
182 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 197 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |