comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/ExternalWMSArtifact.java @ 4497:a2735a4bf75e

Change facets member variable to private Don't allow direct access to the facets member variable. Use the addFacets and getFacets methods instead.
author Björn Ricks <bjoern.ricks@intevation.de>
date Wed, 14 Nov 2012 11:15:57 +0100
parents 063b784b60b4
children
comparison
equal deleted inserted replaced
4496:d8992459b408 4497:a2735a4bf75e
57 57
58 WMSBackgroundState s = (WMSBackgroundState) getCurrentState(context); 58 WMSBackgroundState s = (WMSBackgroundState) getCurrentState(context);
59 s.computeInit(this, hash(), context, callMeta, fs); 59 s.computeInit(this, hash(), context, callMeta, fs);
60 60
61 if (!fs.isEmpty()) { 61 if (!fs.isEmpty()) {
62 facets.put(getCurrentStateId(), fs); 62 addFacets(getCurrentStateId(), fs);
63 } 63 }
64 } 64 }
65 65
66 66
67 @Override 67 @Override
76 76
77 @Override 77 @Override
78 public State getCurrentState(Object cc) { 78 public State getCurrentState(Object cc) {
79 State s = new ExternalWMSState(this); 79 State s = new ExternalWMSState(this);
80 80
81 List<Facet> fs = facets.get(getCurrentStateId()); 81 List<Facet> fs = getFacets(getCurrentStateId());
82 82
83 DefaultOutput o = new DefaultOutput( 83 DefaultOutput o = new DefaultOutput(
84 "floodmap", 84 "floodmap",
85 "floodmap", 85 "floodmap",
86 "image/png", 86 "image/png",

http://dive4elements.wald.intevation.org