org.tigris.scarab.actions
Class Register

java.lang.Object
  extended byorg.apache.turbine.modules.Module
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.turbine.modules.actions.TemplateAction
                  extended byorg.apache.turbine.TemplateAction
                      extended byorg.tigris.scarab.actions.base.ScarabTemplateAction
                          extended byorg.tigris.scarab.actions.Register

public class Register
extends ScarabTemplateAction

This class is responsible for dealing with the Register Action.

Version:
$Id: Register.java 9999 2006-01-31 20:39:01Z dabbous $
Author:
Jon S. Stevens

Field Summary
 
Fields inherited from class org.tigris.scarab.actions.base.ScarabTemplateAction
DEFAULT_MSG, EMAIL_ERROR, ERROR_MESSAGE, NO_PERMISSION_MESSAGE
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
Register()
           
 
Method Summary
 void doBack(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          returns you to Register.vm
 void doConfirm(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages clicking the Confirm button in the Confirm.vm template.
 void doConfirmregistration(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
           
 void doPerform(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          calls doRegisterConfirm()
 void doRegister(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages clicking the "Register" button in the Register.vm template.
 void doResendconfirmationcode(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages clicking the "Resend code" button in the Confirm.vm template.
(package private)  java.lang.String parseDomain(java.lang.String email)
          For an email address like jon@foo.bar.com, parse and return the TLD bar.com.
 
Methods inherited from class org.tigris.scarab.actions.base.ScarabTemplateAction
doCancel, doDone, doGonext, doGotoothertemplate, doRefresh, doRefreshresultsperpage, doReset, doSave, getBackTemplate, getBackTemplate, getCancelTemplate, getCancelTemplate, getCurrentTemplate, getCurrentTemplate, getIntakeTool, getLastTemplate, getLocalizationTool, getNextTemplate, getNextTemplate, getOtherTemplate, getScarabRequestTool, log
 
Methods inherited from class org.apache.turbine.modules.actions.TemplateAction
doPerform, executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
execute, formatString, perform
 
Methods inherited from class org.apache.turbine.modules.Module
build, doBuild, doBuildTemplate, doBuildTemplate, evaluate, getPullService, getTemplateContext, getTemplateService, getTool, handleRequest, handleRequest, requestFinished, setTarget, setTemplate, templateExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Register

public Register()
Method Detail

doRegister

public void doRegister(org.apache.turbine.RunData data,
                       org.apache.turbine.TemplateContext context)
                throws java.lang.Exception
This manages clicking the "Register" button in the Register.vm template. As a result, the user will go to the RegisterConfirm.vm screen.

Throws:
java.lang.Exception

doConfirmregistration

public void doConfirmregistration(org.apache.turbine.RunData data,
                                  org.apache.turbine.TemplateContext context)
                           throws java.lang.Exception
Throws:
java.lang.Exception

doBack

public void doBack(org.apache.turbine.RunData data,
                   org.apache.turbine.TemplateContext context)
            throws java.lang.Exception
returns you to Register.vm

Throws:
java.lang.Exception

doPerform

public void doPerform(org.apache.turbine.RunData data,
                      org.apache.turbine.TemplateContext context)
               throws java.lang.Exception
calls doRegisterConfirm()

Throws:
java.lang.Exception

doConfirm

public void doConfirm(org.apache.turbine.RunData data,
                      org.apache.turbine.TemplateContext context)
               throws java.lang.Exception
This manages clicking the Confirm button in the Confirm.vm template. As a result, this will end up sending the user to the Confirm screen.

Throws:
java.lang.Exception

doResendconfirmationcode

public void doResendconfirmationcode(org.apache.turbine.RunData data,
                                     org.apache.turbine.TemplateContext context)
                              throws java.lang.Exception
This manages clicking the "Resend code" button in the Confirm.vm template.

Throws:
java.lang.Exception

parseDomain

java.lang.String parseDomain(java.lang.String email)
For an email address like jon@foo.bar.com, parse and return the TLD bar.com.



Copyright © 2000-2004 Tigris.org. All Rights Reserved.