VersionCheckPolicy.java :  » Web-Framework » RSF » uk » org » ponder » rsf » state » Java Open Source

Java Open Source » Web Framework » RSF 
RSF » uk » org » ponder » rsf » state » VersionCheckPolicy.java
/*
 * Created on Nov 12, 2005
 */
package uk.org.ponder.rsf.state;

import uk.org.ponder.rsf.request.SubmittedValueEntry;

/** Called for every RSVC entry just before its value is applied to the
 * model, to give a chance for an application-defined version check. 
 * In general if the version check fails, the method will throw some
 * form of exception, and in addition ought to add a TargettedMessage
 * to the current error state highlighting the erroneous value.
 * <p>For extreme customisability, this message could even be specifically
 * detected by the ARI and MRS flow directed to another path.
 * @author Antranig Basman (antranig@caret.cam.ac.uk)
 *
 */
public interface VersionCheckPolicy {
  public void checkOldVersion(SubmittedValueEntry sve);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.