org.apache.shale.examples.mailreaderjpa
Class Detail

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

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

Backing bean for the /detail.jsp view.


Constructor Summary
Detail()
           
 
Method Summary
 String cancel()
          Cancel saving the updated subscription information.
 void destroy()
          Release resources used during this request.
 Domains getDomains()
          Return the Domains for this application.
 Logic getLogic()
          Return the business Logic for this application.
 String getMode()
          Return the transaction mode (CREATE or EDIT) for this request.
 State getState()
          Return the per-user State instance we are associated with.
 org.apache.mailreaderjpa.Subscription getSubscription()
          Return the Subscription instance we are creating or editing.
 void init()
          Initialize primary key and transaction mode from the request URI, if specified.
 boolean isReadOnly()
          Return true if the input fields should be rendered as read only.
 void preprocess()
          Restore the User instance we are creating or editing, creating a new one if necessary.
 void prerender()
          Cache the Subscription instance we are creating or editing, as well as the transaction model
 String save()
          Save away the updated subscription information.
 void setDomains(Domains domains)
          Set the Domains for this application.
 void setId(int id)
          Set the primary key of the row to be processed.
 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 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

Detail

public Detail()
Method Detail

getDomains

public Domains getDomains()

Return the Domains for this application.


setDomains

public void setDomains(Domains domains)

Set the Domains for this application.

Parameters:
domains - The new domains instance

setId

public void setId(int id)

Set the primary key of the row to be processed.

Parameters:
id - The new primary key

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

isReadOnly

public boolean isReadOnly()

Return true if the input fields should be rendered as read only.


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

getSubscription

public org.apache.mailreaderjpa.Subscription getSubscription()

Return the Subscription instance we are creating or editing.


init

public void init()

Initialize primary key and 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 Subscription 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 subscription information.


save

public String save()

Save away the updated subscription information.



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