comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationDistanceSelect.java @ 1050:eccf966fb677

State engine: Removed CallContext from state validation. flys-artifacts/trunk@2512 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 19 Aug 2011 14:10:18 +0000
parents 610d0e0f4f85
children 9a77a9adbb36
comparison
equal deleted inserted replaced
1049:433559e25b50 1050:eccf966fb677
42 return "location_distance_panel"; 42 return "location_distance_panel";
43 } 43 }
44 44
45 45
46 @Override 46 @Override
47 public boolean validate(Artifact artifact, CallContext context) 47 public boolean validate(Artifact artifact)
48 throws IllegalArgumentException 48 throws IllegalArgumentException
49 { 49 {
50 logger.debug("LocationDistanceSelect.validate"); 50 logger.debug("LocationDistanceSelect.validate");
51 51
52 FLYSArtifact flys = (FLYSArtifact) artifact; 52 FLYSArtifact flys = (FLYSArtifact) artifact;
53 53
54 if (flys.isRange()) { 54 if (flys.isRange()) {
55 return super.validate(flys, context); 55 return super.validate(flys);
56 } 56 }
57 else { 57 else {
58 return validateLocations(flys, context); 58 return validateLocations(flys);
59 } 59 }
60 } 60 }
61 61
62 62
63 protected boolean validateLocations(FLYSArtifact flys, CallContext context) 63 protected boolean validateLocations(FLYSArtifact flys)
64 throws IllegalArgumentException 64 throws IllegalArgumentException
65 { 65 {
66 StateData dValues = getData(flys, LOCATIONS); 66 StateData dValues = getData(flys, LOCATIONS);
67 String values = dValues != null ? (String)dValues.getValue() : null; 67 String values = dValues != null ? (String)dValues.getValue() : null;
68 68

http://dive4elements.wald.intevation.org