Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.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 | 3f3988bb6284 |
children | 8da5f5a9ed3c |
comparison
equal
deleted
inserted
replaced
1049:433559e25b50 | 1050:eccf966fb677 |
---|---|
247 /** | 247 /** |
248 * This method validates the inserted data and returns true, if everything | 248 * This method validates the inserted data and returns true, if everything |
249 * was correct, otherwise an exception is thrown. | 249 * was correct, otherwise an exception is thrown. |
250 * | 250 * |
251 * @param artifact A reference to the owner artifact. | 251 * @param artifact A reference to the owner artifact. |
252 * @param context The CallContext object. | |
253 * | 252 * |
254 * @return true, if everything was fine. | 253 * @return true, if everything was fine. |
255 */ | 254 */ |
256 public boolean validate(Artifact artifact, CallContext context) | 255 public boolean validate(Artifact artifact) |
257 throws IllegalArgumentException | 256 throws IllegalArgumentException |
258 { | 257 { |
259 return true; | 258 return true; |
260 } | 259 } |
261 | 260 |