org.tigris.scarab.actions
Class ForgotPassword

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.ForgotPassword

public class ForgotPassword
extends ScarabTemplateAction

This class is responsible for dealing with the Forgot Password Action.

Author:
Kevin Minshull

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
ForgotPassword()
           
 
Method Summary
 void doForgotpassword(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages clicking the Forgot Password button
 boolean forgotPassword(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This takes care of looking the user up, setting the password to an arbitrary value and sending the user an email
static void sendNotificationEmail(org.apache.turbine.TemplateContext context, ScarabUser user, java.lang.String tempPassword)
          Send the a password reset notification to the given user.
 
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, 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

ForgotPassword

public ForgotPassword()
Method Detail

doForgotpassword

public void doForgotpassword(org.apache.turbine.RunData data,
                             org.apache.turbine.TemplateContext context)
                      throws java.lang.Exception
This manages clicking the Forgot Password button

Throws:
java.lang.Exception

forgotPassword

public boolean forgotPassword(org.apache.turbine.RunData data,
                              org.apache.turbine.TemplateContext context)
                       throws java.lang.Exception
This takes care of looking the user up, setting the password to an arbitrary value and sending the user an email

Throws:
java.lang.Exception

sendNotificationEmail

public static void sendNotificationEmail(org.apache.turbine.TemplateContext context,
                                         ScarabUser user,
                                         java.lang.String tempPassword)
                                  throws java.lang.Exception
Send the a password reset notification to the given user.

Parameters:
context -
user -
tempPassword -
Throws:
java.lang.Exception


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