org.apache.shale.examples.mailreaderjpa
Class Logon

java.lang.Object
  extended by org.apache.shale.view.AbstractFacesBean
      extended by org.apache.shale.view.AbstractViewController
          extended by org.apache.shale.examples.mailreaderjpa.Logon
All Implemented Interfaces:
org.apache.shale.view.ViewController

public class Logon
extends org.apache.shale.view.AbstractViewController

Backing bean for /logon.jsp view. Upon completion of a successful logon, a User instance for the logged on user will be stored in the session-scoped state bean.


Constructor Summary
Logon()
           
 
Method Summary
 Logic getLogic()
          Return the business Logic for this application.
 String getPassword()
           
 State getState()
          Return the per-user State instance we are associated with.
 String getUsername()
           
 String logon()
          Handle a request to log this user on.
 void preprocess()
          Ensure that the database content has been bootstrapped before we try to authenticate a user.
 void setLogic(Logic logic)
          Set the business Logic for this application.
 void setPassword(String password)
           
 void setState(State state)
          Set the per-user State instance we are associated with.
 void setUsername(String username)
           
 
Methods inherited from class org.apache.shale.view.AbstractViewController
destroy, init, isPostBack, prerender, setPostBack
 
Methods inherited from class org.apache.shale.view.AbstractFacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logon

public Logon()
Method Detail

getLogic

public Logic getLogic()

Return the business Logic for this application.


setLogic

public void setLogic(Logic logic)

Set the business Logic for this application.

Parameters:
logic - The new business logic instance

getState

public State getState()

Return the per-user State instance we are associated with.


setState

public void setState(State state)

Set the per-user State instance we are associated with.

Parameters:
state - The new State instance

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

preprocess

public void preprocess()

Ensure that the database content has been bootstrapped before we try to authenticate a user.

Specified by:
preprocess in interface org.apache.shale.view.ViewController
Overrides:
preprocess in class org.apache.shale.view.AbstractViewController

logon

public String logon()

Handle a request to log this user on.



Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.