01: /*
02: * Created on Nov 12, 2005
03: */
04: package uk.org.ponder.rsf.state;
05:
06: import uk.org.ponder.rsf.request.SubmittedValueEntry;
07:
08: /** Called for every RSVC entry just before its value is applied to the
09: * model, to give a chance for an application-defined version check.
10: * In general if the version check fails, the method will throw some
11: * form of exception, and in addition ought to add a TargettedMessage
12: * to the current error state highlighting the erroneous value.
13: * <p>For extreme customisability, this message could even be specifically
14: * detected by the ARI and MRS flow directed to another path.
15: * @author Antranig Basman (antranig@caret.cam.ac.uk)
16: *
17: */
18: public interface VersionCheckPolicy {
19: public void checkOldVersion(SubmittedValueEntry sve);
20: }
|