| com.jcorporate.expresso.core.controller.DBController com.jcorporate.expresso.services.controller.ValidationController
ValidationController | public class ValidationController extends DBController (Code) | | This is an Expresso controller that responds to the validator
clicking on an URL provided to him from the notification
from the validation job. It has the responsibility of
extracting the parameters from the request, resurrecting
the Validation entry using the validation-db-context and the
validation id. It then compares the code provided in the
request with that stored in the validation entry. If the code
matches, then the application-supplied validation handler is called
to allow the validated-process to go through.
author: Shash Chatterjee |
Constructor Summary | |
public | ValidationController() Typical default constructor for a controller, defines
all the states handled by this controller and also
sets the initial state if no "state=..." parameter
is provided when this controller is invoked. |
ValidationController | public ValidationController()(Code) | | Typical default constructor for a controller, defines
all the states handled by this controller and also
sets the initial state if no "state=..." parameter
is provided when this controller is invoked.
Creation date: (9/23/2001 9:53:01 AM)
Author: Shash Chatterjee
|
getTitle | public String getTitle()(Code) | | A short title for this controller, used mainly in UI screens.
Creation date: (9/23/2001 9:54:30 AM)
Author: Shash Chatterjee
The title |
runPromptValidationState | protected void runPromptValidationState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code) | | This method simply provides an UI for the three parameters
found in a validation URL. It is onlyu used when there is
an error found processing the link with the runValidateState(...)
method.
Creation date: (9/23/2001 9:56:25 AM)
Author: Shash Chatterjee
Parameters: request - All the request parameters Parameters: response - The response created by this state throws: ControllerException - Some of the objects used generate this |
runValidateState | protected ControllerResponse runValidateState(ControllerRequest request, ControllerResponse response) throws ControllerException, DBException, NonHandleableException(Code) | | This method simply provides an UI for the three parameters
found in a validation URL. It is onlyu used when there is
an error found processing the link with the runValidateState(...)
method.
Creation date: (9/23/2001 9:56:25 AM)
Author: Shash Chatterjee
Parameters: request - All the request parameters Parameters: response - The response created by this state ControllerResponse throws: ControllerException - If there as an exception thrown by thevalidation classes, also some of the objects used generate this throws: DBException - Some of the objects used generate this throws: NonHandleableException - Some of the objects used generate this |
stateAllowed | public synchronized boolean stateAllowed(String newState, ControllerRequest params) throws ControllerException(Code) | | This method allows access to all states of this controller to everybody. The goal
of preventing 'hack' attacks here is to require the tough random numbers. Currently
we are doing 160 Bit random numbers. Makes for quite a long random URL
Creation date: (9/23/2001 2:19:02 PM)
Author: Shash Chatterjee
Parameters: newState - The state to check permissions for Parameters: params - The request parameters true if the current is allowed to execute this state, false otherwise throws: ControllerException - upon error (this implementation does not) |
|
|