|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
mailreader2.MailreaderSupport
mailreader2.Subscription
public class Subscription
Provide an Edit method for retrieving an existing subscription, and a Save method for updating or inserting a subscription.
| Field Summary |
|---|
| Fields inherited from class mailreader2.MailreaderSupport |
|---|
log |
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
Subscription()
|
|
| Method Summary | |
|---|---|
String |
delete()
Prepare to present a confirmation page before removing Subscription. |
String |
edit()
Prepare to edit User Subscription. |
String |
find()
Load User Subscription for the local Host property. |
Map |
getTypes()
Provide the list of MailServer types. |
String |
input()
Setup a temporary User Subscription object to capture input values. |
void |
prepare()
Setup the MailerServer types and set the local Host property from the User Subscription (if any). |
String |
save()
Examine the Task property and DELETE, CREATE, or save the User Subscription, as appropriate. |
| Methods inherited from class mailreader2.MailreaderSupport |
|---|
cancel, copySubscription, copySubscription, copyUser, copyUser, createInputSubscription, createInputUser, createSubscription, createUser, findSubscription, findSubscription, findUser, getApplication, getDatabase, getHost, getPassword, getPassword2, getSession, getSubscription, getSubscriptionHost, getTask, getToken, getUser, getUsername, removeSubscription, saveUser, setApplication, setDatabase, setHost, setPassword, setPassword2, setSession, setSubscription, setTask, setToken, setUser, setUsername |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscription()
| Method Detail |
|---|
public Map getTypes()
Provide the list of MailServer types.
public void prepare()
Setup the MailerServer types and set the local Host property from the User Subscription (if any).
prepare in interface com.opensymphony.xwork2.Preparablepublic String input()
Setup a temporary User Subscription object to capture input values.
input in class com.opensymphony.xwork2.ActionSupportpublic String find()
Load User Subscription for the local Host property.
Usually, the Host is being set from the request by a link to an Edit or Delete task.
public String delete()
Prepare to present a confirmation page before removing Subscription.
public String edit()
Prepare to edit User Subscription.
public String save()
throws Exception
Examine the Task property and DELETE, CREATE, or save the User Subscription, as appropriate.
Exception - on a database error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||