org.apache.turbine.modules.actions
Class LoginUser

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Action
              |
              +--org.apache.turbine.modules.actions.LoginUser

public class LoginUser
extends Action

This is where we authenticate the user logging into the system against a user in the database. If the user exists in the database that users last login time will be updated.

Version:
$Id: LoginUser.java,v 1.2 2002/08/22 11:45:52 mpoeschl Exp $
Author:
Dave Bryson

Constructor Summary
LoginUser()
           
 
Method Summary
 void doPerform(RunData data)
          Updates the user's LastLogin timestamp, sets their state to "logged in" and calls RunData.setUser() .
 
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

LoginUser

public LoginUser()
Method Detail

doPerform

public void doPerform(RunData data)
               throws java.lang.Exception
Updates the user's LastLogin timestamp, sets their state to "logged in" and calls RunData.setUser() . If the user cannot be authenticated (database error?) the user is assigned anonymous status and, if tr.props contains a TEMPLATE_LOGIN, the screenTemplate is set to this, otherwise the screen is set to SCREEN_LOGIN

Note: Turbine clears the session before calling this method

Overrides:
doPerform in class Action
Parameters:
data - Turbine information.
Throws:
Exception, - a generic exception.


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