org.apache.jetspeed.modules.actions
Class CreateNewUserAndConfirm

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.jetspeed.modules.actions.CreateNewUserAndConfirm

public class CreateNewUserAndConfirm
extends org.apache.turbine.modules.Action

This action validates the form input from the NewAccount Screen. If it is valid, then it will check to make sure that the user account does not already exist. If it does, then it will show the NewAccount screen again. If it doesn't alread exist, then it will create the new user and set the CONFIRM_VALUE to be the users session id. This part should probably be re-done to get a better less hackable CONFIRM_VALUE, but this should work for now. If everything goes well, this action will send the user a confirmation email and then show the ConfirmRegistration screen.

Author:
Jon S. Stevens jon@clearink.com, David S. Taylor david@bluesunrise.com, Tom Adams tom@PIsoftware.com

Constructor Summary
CreateNewUserAndConfirm()
           
 
Method Summary
protected  void createUser(JetspeedUser user, org.apache.turbine.util.RunData data)
          createUser creates a new user.
 void doPerform(org.apache.turbine.util.RunData data)
           
 
Methods inherited from class org.apache.turbine.modules.Action
perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateNewUserAndConfirm

public CreateNewUserAndConfirm()
Method Detail

doPerform

public void doPerform(org.apache.turbine.util.RunData data)
               throws java.lang.Exception
Throws:
java.lang.Exception

createUser

protected void createUser(JetspeedUser user,
                          org.apache.turbine.util.RunData data)
                   throws java.lang.Exception
createUser creates a new user. Subclasses can override this method - adding additional user property settings as needed. The default implementation does nothing.

Parameters:
user - the new user that has been created
data - the current RunData instance
Throws:
java.lang.Exception - passed up from JetspeedSecurity


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.