Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/CoordinateSelectionState.java @ 607:292fbcd5e9ac
Parted the cache blob into pieces and changed the way how user input is stored on each state.
gnv-artifacts/trunk@673 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 10 Feb 2010 11:43:35 +0000 |
parents | c5ed4ea8fb64 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
606:9efc1c256dbb | 607:292fbcd5e9ac |
---|---|
64 public CoordinateSelectionState() { | 64 public CoordinateSelectionState() { |
65 super(); | 65 super(); |
66 } | 66 } |
67 | 67 |
68 @Override | 68 @Override |
69 protected void purifyResult(Collection<Result> result, String uuid) { | 69 protected List<Object> purifyResult(Collection<Result> result, String uuid) { |
70 log.debug("CoordinateSelectionState.purifyResult"); | 70 log.debug("CoordinateSelectionState.purifyResult"); |
71 List<Object> describeData = this.getDescibeData(uuid); | 71 List<Object> describeData = new ArrayList<Object>(); |
72 if (describeData == null) { | 72 |
73 describeData = new ArrayList<Object>(); | 73 NamedCollection<KeyValueDescibeData> keyValueDescibeData = |
74 } | 74 extractKVP(result, "FEATUREID", "SHAPE"); |
75 NamedCollection<KeyValueDescibeData> keyValueDescibeData = this | 75 |
76 .extractKVP(result, "FEATUREID", "SHAPE"); | |
77 describeData.add(keyValueDescibeData); | 76 describeData.add(keyValueDescibeData); |
78 this.setDescibeData(uuid, describeData); | 77 return describeData; |
79 } | 78 } |
80 | 79 |
81 /** | 80 /** |
82 * @see de.intevation.gnv.state.StateBase#prepareInputData4RegionDBQuery(java.lang.String) | 81 * @see de.intevation.gnv.state.StateBase#prepareInputData4RegionDBQuery(java.lang.String) |
83 */ | 82 */ |
84 @Override | 83 @Override |
85 protected String prepareInputData4RegionDBQuery(String value) { | 84 protected String prepareInputData4RegionDBQuery(String value) { |