mailreader2
Class Registration

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by mailreader2.MailreaderSupport
          extended by mailreader2.Registration
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, ApplicationAware, SessionAware

public class Registration
extends MailreaderSupport

Insert or update a User object to the persistent store.

See Also:
Serialized Form

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
Registration()
           
 
Method Summary
 String execute()
           Insert or update a User object to the persistent store.
 String input()
           Retrieve User object to edit or null if User does not exist.
 String save()
          Insert or update a Registration.
 
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, 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

Registration

public Registration()
Method Detail

input

public String input()
             throws Exception

Retrieve User object to edit or null if User does not exist.

Overrides:
input in class com.opensymphony.xwork2.ActionSupport
Returns:
The "Success" result for this mapping
Throws:
Exception - on any error

save

public String save()
            throws Exception

Insert or update a Registration.

Returns:
The "outcome" result code
Throws:
Exception - on any error

execute

public String execute()
               throws Exception

Insert or update a User object to the persistent store.

If a User is not logged in, then a new User is created and automatically logged in. Otherwise, the existing User is updated.

Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Returns:
The "outcome" result code
Throws:
Exception - on any error


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.