|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.view.AbstractFacesBean org.apache.shale.view.AbstractViewController org.apache.shale.examples.mailreader.BaseViewController org.apache.shale.examples.mailreader.Registration
public class Registration
ViewController
for the registration
page.
Constructor Summary | |
---|---|
Registration()
|
Method Summary | |
---|---|
String |
cancel()
Return to the appropriate page depending on the current mode. |
String |
create()
Create a new subscription. |
String |
delete()
Delete an existing subscription. |
void |
destroy()
Release our reference to to the retrieved subscriptions (if any). |
String |
edit()
Edit an existing subscription. |
String |
getFromAddress()
|
String |
getFullName()
|
String |
getPassword()
|
String |
getPassword2()
|
String |
getReplyToAddress()
|
org.apache.struts.apps.mailreader.dao.Subscription[] |
getSubscriptions()
|
String |
getUsername()
|
void |
preprocess()
If this is a postback, and we are in EDIT mode, retrieve the subscriptions for the currently logged on user. |
void |
prerender()
If this is not a postback, and we are in EDIT mode, prepopulate the field values for the user registration update form and retrieve the subscriptions for the currently logged in user. |
String |
save()
Create or update the user information. |
void |
setFromAddress(String fromAddress)
|
void |
setFullName(String fullName)
|
void |
setPassword(String password)
|
void |
setPassword2(String password2)
|
void |
setReplyToAddress(String replyToAddress)
|
void |
setSubscriptions(org.apache.struts.apps.mailreader.dao.Subscription[] subscriptions)
|
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 |
---|
init, 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 |
---|
public Registration()
Method Detail |
---|
public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- The fromAddress to set.public String getFullName()
public void setFullName(String fullName)
fullName
- The fullName to set.public String getPassword()
public void setPassword(String password)
password
- The password to set.public String getPassword2()
public void setPassword2(String password2)
password2
- The password2 to set.public String getReplyToAddress()
public void setReplyToAddress(String replyToAddress)
replyToAddress
- The replyToAddress to set.public org.apache.struts.apps.mailreader.dao.Subscription[] getSubscriptions()
public void setSubscriptions(org.apache.struts.apps.mailreader.dao.Subscription[] subscriptions)
subscriptions
- The subscriptions to set.public String getUsername()
public void setUsername(String username)
username
- The username to set.public String cancel()
Return to the appropriate page depending on the current mode.
public String create()
Create a new subscription.
public String delete()
Delete an existing subscription.
public String edit()
Edit an existing subscription.
public String save() throws org.apache.struts.apps.mailreader.dao.ExpiredPasswordException
Create or update the user information.
org.apache.struts.apps.mailreader.dao.ExpiredPasswordException
public void preprocess()
If this is a postback, and we are in EDIT mode, retrieve the subscriptions for the currently logged on user. This is required in case the user clicked one of the Delete or Edit buttons in the table, so that the correct row can be positioned to before calling the event handler.
preprocess
in interface org.apache.shale.view.ViewController
preprocess
in class org.apache.shale.view.AbstractViewController
public void prerender()
If this is not a postback, and we are in EDIT mode, prepopulate
the field values for the user registration update form and retrieve the
subscriptions for the currently logged in user. (If this is a
postback, we will have done this already in init()
.)
prerender
in interface org.apache.shale.view.ViewController
prerender
in class org.apache.shale.view.AbstractViewController
public void destroy()
Release our reference to to the retrieved subscriptions (if any). If we were using a real database, this is where closing the result set would go.
destroy
in interface org.apache.shale.view.ViewController
destroy
in class org.apache.shale.view.AbstractViewController
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |