Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.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 | 90ee95945684 |
children | 61c051e53f9b |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Fri Aug 19 11:46:40 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WQAdapted.java Fri Aug 19 14:10:18 2011 +0000 @@ -271,7 +271,7 @@ @Override - public boolean validate(Artifact artifact, CallContext context) + public boolean validate(Artifact artifact) throws IllegalArgumentException { logger.debug("WQAdapted.validate"); @@ -282,10 +282,10 @@ String mode = data != null ? (String) data.getValue() : null; if (mode != null && mode.equals("W")) { - return validateW(artifact, context); + return validateW(artifact); } else if (mode != null && mode.equals("Q")) { - return validateQ(artifact, context); + return validateQ(artifact); } else { throw new IllegalArgumentException("error_feed_no_wq_mode_selected"); @@ -293,7 +293,7 @@ } - protected boolean validateW(Artifact artifact, CallContext context) + protected boolean validateW(Artifact artifact) throws IllegalArgumentException { logger.debug("WQAdapted.validateW"); @@ -323,7 +323,7 @@ } - protected boolean validateQ(Artifact artifact, CallContext context) + protected boolean validateQ(Artifact artifact) throws IllegalArgumentException { logger.debug("WQAdapted.validateQ");