org.apache.shale.examples.mailreaderjpa
Class Master

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

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

Backing bean for the /master.jsp view.


Constructor Summary
Master()
           
 
Method Summary
 String cancel()
          Cancel saving the updated user information.
 void destroy()
          Release resources used during this request.
 Logic getLogic()
          Return the business Logic for this application.
 String getMode()
          Return the transaction mode (CREATE or EDIT) for this request.
 String getPassword()
          Return the specified password.
 String getPassword2()
          Return the confirmation password.
 State getState()
          Return the per-user State instance we are associated with.
 org.apache.mailreaderjpa.User getUser()
          Return the User instance we are creating or editing.
 void init()
          Initialize transaction mode from the request URI, if specified.
 void preprocess()
          Restore the User instance we are creating or editing, creating a new one if necessary.
 void prerender()
          Cache the User instance we are creating or editing, as well as the transaction model
 String save()
          Save away the updated user information.
 void setLogic(Logic logic)
          Set the business Logic for this application.
 void setMode(String mode)
          Set the transaction mode (CREATE or EDIT) for this request.
 void setPassword(String password)
          Set the specified password.
 void setPassword2(String password2)
          Set the confirmation password.
 void setState(State state)
          Set the per-user State instance we are associated with.
 
Methods inherited from class org.apache.shale.view.AbstractViewController
isPostBack, 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

Master

public Master()
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

getMode

public String getMode()

Return the transaction mode (CREATE or EDIT) for this request.


setMode

public void setMode(String mode)

Set the transaction mode (CREATE or EDIT) for this request.

Parameters:
mode - The new transaction mode

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

getUser

public org.apache.mailreaderjpa.User getUser()

Return the User instance we are creating or editing.


getPassword

public String getPassword()

Return the specified password.


setPassword

public void setPassword(String password)

Set the specified password.

Parameters:
password - The new specified password

getPassword2

public String getPassword2()

Return the confirmation password.


setPassword2

public void setPassword2(String password2)

Set the confirmation password.

Parameters:
password2 - The new confirmation password

init

public void init()

Initialize transaction mode from the request URI, if specified.

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

preprocess

public void preprocess()

Restore the User instance we are creating or editing, creating a new one if necessary.

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

prerender

public void prerender()

Cache the User instance we are creating or editing, as well as the transaction model

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

destroy

public void destroy()

Release resources used during this request.

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

cancel

public String cancel()

Cancel saving the updated user information.


save

public String save()

Save away the updated user information.



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