org.apache.shale.examples.mailreader
Class Subscription

java.lang.Object
  extended by org.apache.shale.view.AbstractFacesBean
      extended by org.apache.shale.view.AbstractViewController
          extended by org.apache.shale.examples.mailreader.BaseViewController
              extended by org.apache.shale.examples.mailreader.Subscription
All Implemented Interfaces:
org.apache.shale.view.ViewController

public class Subscription
extends BaseViewController

ViewController for the subscription page.


Constructor Summary
Subscription()
           
 
Method Summary
 String cancel()
          Return to the appropriate page depending on the current mode.
 String getHost()
           
 String getPassword()
           
 String getType()
           
 String getUsername()
           
 boolean isAutoConnect()
           
 void prerender()
          If this is not a postack, and we are in DELETE or EDIT mode, prepopulate the field values for the subscription update form.
 String save()
          Create or update the user information.
 void setAutoConnect(boolean autoConnect)
           
 void setHost(String host)
           
 void setPassword(String password)
           
 void setType(String type)
           
 void setUsername(String username)
           
 
Methods inherited from class org.apache.shale.examples.mailreader.BaseViewController
getState, getUserDatabase
 
Methods inherited from class org.apache.shale.view.AbstractViewController
destroy, init, isPostBack, preprocess, 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

Subscription

public Subscription()
Method Detail

isAutoConnect

public boolean isAutoConnect()
Returns:
Returns the autoConnect.

setAutoConnect

public void setAutoConnect(boolean autoConnect)
Parameters:
autoConnect - The autoConnect to set.

getHost

public String getHost()
Returns:
Returns the host.

setHost

public void setHost(String host)
Parameters:
host - The host to set.

getPassword

public String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(String password)
Parameters:
password - The password to set.

getType

public String getType()
Returns:
Returns the type.

setType

public void setType(String type)
Parameters:
type - The type to set.

getUsername

public String getUsername()
Returns:
Returns the username.

setUsername

public void setUsername(String username)
Parameters:
username - The username to set.

cancel

public String cancel()

Return to the appropriate page depending on the current mode.


save

public String save()

Create or update the user information.


prerender

public void prerender()

If this is not a postack, and we are in DELETE or EDIT mode, prepopulate the field values for the subscription update form.

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


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