Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 736:b8c7105f2b94
Revoke Changes of r771 and override affected Methods in DefaultAutoResumeState
gnv-artifacts/trunk@774 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 15 Mar 2010 13:40:14 +0000 |
parents | 18dc6a99f4f4 |
children | 0563389138bb |
comparison
equal
deleted
inserted
replaced
735:d47901df0a14 | 736:b8c7105f2b94 |
---|---|
234 } | 234 } |
235 | 235 |
236 boolean valid = iv.isInputValid(tmpItem.getValue(), | 236 boolean valid = iv.isInputValid(tmpItem.getValue(), |
237 inputValue.getType()); | 237 inputValue.getType()); |
238 if (valid) { | 238 if (valid) { |
239 if (this.queryID != null){ | 239 String[] desc = getDescriptionForInputData(tmpItem, uuid); |
240 // Query the Description only if it is possible to | 240 tmpItem.setDescription(desc); |
241 // Query data from the Database for this State. | |
242 String[] desc = getDescriptionForInputData(tmpItem, uuid); | |
243 tmpItem.setDescription(desc); | |
244 } | |
245 this.inputData.put(tmpItem.getName(), tmpItem); | 241 this.inputData.put(tmpItem.getName(), tmpItem); |
246 } else { | 242 } else { |
247 String msg = resFactory.getRessource( | 243 String msg = resFactory.getRessource( |
248 locale, | 244 locale, |
249 EXCEPTION_INVALID_INPUT, | 245 EXCEPTION_INVALID_INPUT, |
285 return ArtifactXMLUtilities.createInputExceptionReport( | 281 return ArtifactXMLUtilities.createInputExceptionReport( |
286 msg, XMLUtils.newDocument()); | 282 msg, XMLUtils.newDocument()); |
287 } | 283 } |
288 | 284 |
289 | 285 |
290 private String[] getDescriptionForInputData(InputData data, String uuid) { | 286 protected String[] getDescriptionForInputData(InputData data, String uuid) { |
291 // there is only one element in the list, so take the first | 287 // there is only one element in the list, so take the first |
292 Object obj = getDescibeData(uuid).get(0); | 288 Object obj = getDescibeData(uuid).get(0); |
293 List descs = new ArrayList(); | 289 List descs = new ArrayList(); |
294 | 290 |
295 if (obj instanceof NamedArrayList) { | 291 if (obj instanceof NamedArrayList) { |