Expresso 5-6

com.jcorporate.expresso.services.validation
Class LoginEmailValidator

java.lang.Object
  extended bycom.jcorporate.expresso.services.validation.LoginEmailValidator
All Implemented Interfaces:
ValidationHandler

public class LoginEmailValidator
extends Object
implements ValidationHandler

This class is a helper class that allows the LoginController controller to validate the email address provided as part of express registration.

Version:
$Revision: 1.17 $ $Date: 2004/11/17 20:48:22 $
Author:
Shash Chatterjee
See Also:
LoginController

Constructor Summary
LoginEmailValidator()
          Default constructor Creation date: (9/23/2001 2:23:06 PM) Author: Shash Chatterjee
 
Method Summary
protected  String getString(String stringCode)
          Convenience version of the above with no arguments.
protected  String getString(String stringCode, Object[] args)
          Pass on a call to retrieve an appropriate localized string from the correct Schema object.
 void notify(Hashtable params, String URL)
          This method is used to send the user that registered an email so that when they click on the link it can be verified that the email address they provided does indeed belong to them and is a working email address.
 ControllerResponse validated(Hashtable params, ControllerRequest request, ControllerResponse response, Controller ctlr)
          This method is used to transition back to the "emailValidate" state of the registration controller which then completes the user's registration and sends out the email notification of succesful registration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginEmailValidator

public LoginEmailValidator()
Default constructor Creation date: (9/23/2001 2:23:06 PM) Author: Shash Chatterjee

Method Detail

notify

public void notify(Hashtable params,
                   String URL)
            throws AuthValidationException
This method is used to send the user that registered an email so that when they click on the link it can be verified that the email address they provided does indeed belong to them and is a working email address. This method is called by ValidationJob when a new validation request is submitted. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Specified by:
notify in interface ValidationHandler
Parameters:
params - params All the application-specific parameters from LoginController
URL - URL The link that the user will click on to validate the request
Throws:
AuthValidationException - AuthValidationException
See Also:
ValidationJob

validated

public ControllerResponse validated(Hashtable params,
                                    ControllerRequest request,
                                    ControllerResponse response,
                                    Controller ctlr)
                             throws ControllerException,
                                    NonHandleableException
This method is used to transition back to the "emailValidate" state of the registration controller which then completes the user's registration and sends out the email notification of succesful registration. This method is called by ValidationController after a validation code matches that stored in the validation entry. Creation date: (9/23/2001 2:24:30 PM) Author: Shash Chatterjee

Specified by:
validated in interface ValidationHandler
Parameters:
params - All the application-specific parameters from LoginController
request - the ControllerRequest object
response - The controller response from the runValidationState of ValidationController
ctlr - The ValidationController instance
Returns:
ControllerResponse
Throws:
ControllerException - upon error
NonHandleableException - upon fatal error
See Also:
ValidationController

getString

protected String getString(String stringCode)
Convenience version of the above with no arguments.

Parameters:
stringCode - the string to localize
Returns:
The local-language string corresponding to the given code to return the local language by considering the user as well.

getString

protected String getString(String stringCode,
                           Object[] args)
Pass on a call to retrieve an appropriate localized string from the correct Schema object. This version of the call is overridden with more sophisticated versions in DBController (which knows the username)

Parameters:
stringCode - the string to localize
args - formatting arguments
Returns:
java.lang.String to return the local language by considering the user as well.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.