| org.apache.struts.apps.mailreader.actions.BaseAction org.apache.struts.apps.mailreader.actions.RegistrationAction
RegistrationAction | final public class RegistrationAction extends BaseAction (Code) | |
Provide an Edit method for retrieving an existing user,
and a Save method for updating or inserting a user.
Both methods utilize a RegistrationForm to obtain or expose User details.
If Save is used to create a user,
additional validations ensure input is nominal.
When a user is created,
Save also handles the initial logon.
|
FROM_ADDRESS | final public static String FROM_ADDRESS(Code) | |
Name of fromAddress field ["fromAddress"].
|
FULL_NAME | final public static String FULL_NAME(Code) | |
Name of fullName field ["fullName"].
|
LOG_REGISTRATION_POPULATE | final String LOG_REGISTRATION_POPULATE(Code) | |
The message prefix to use when populating a Registration Form.
|
PASSWORD2 | final public static String PASSWORD2(Code) | |
Name of password confirmation field ["password2"].
|
REPLY_TO_ADDRESS | final public static String REPLY_TO_ADDRESS(Code) | |
Name of replyToAddress field ["replyToAddress"].
|
Edit | public ActionForward Edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | |
Retrieve the User object to edit or null if the User does not exist,
and set an transactional token to later detect multiple Save commands.
Parameters: mapping - Our ActionMapping Parameters: form - Our ActionForm Parameters: request - Our HttpServletRequest Parameters: response - Our HttpServletResponse The "Success" result for this mapping throws: Exception - on any error |
Save | public ActionForward Save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | |
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.
Parameters: mapping - Our ActionMapping Parameters: form - Our ActionForm Parameters: request - Our HttpServletRequest Parameters: response - Our HttpServletResponse The "Success" result for this mapping throws: Exception - on any error |
Methods inherited from org.apache.struts.apps.mailreader.actions.BaseAction | void doCacheUser(HttpServletRequest request, User user)(Code)(Java Doc) protected void doCancel(HttpSession session, String method, String key)(Code)(Java Doc) protected ActionForward doFindFailure(ActionMapping mapping)(Code)(Java Doc) protected ActionForward doFindLogon(ActionMapping mapping)(Code)(Java Doc) protected ActionForward doFindSuccess(ActionMapping mapping)(Code)(Java Doc) protected String doGet(ActionForm form, String property)(Code)(Java Doc) protected Subscription doGetSubscription(HttpSession session)(Code)(Java Doc) protected Subscription doGetSubscription(HttpServletRequest request)(Code)(Java Doc) User doGetUser(UserDatabase database, String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)(Java Doc) User doGetUser(String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)(Java Doc) protected User doGetUser(HttpSession session)(Code)(Java Doc) protected User doGetUser(HttpServletRequest request)(Code)(Java Doc) protected UserDatabase doGetUserDatabase()(Code)(Java Doc) protected ActionForward doInputForward(ActionMapping mapping, HttpServletRequest request, ActionMessages errors)(Code)(Java Doc) protected void doLogProcess(ActionMapping mapping, String method)(Code)(Java Doc) protected void doSaveToken(HttpServletRequest request)(Code)(Java Doc) protected void doSaveUser(User user) throws ServletException(Code)(Java Doc) protected boolean doSet(ActionForm form, String property, String value)(Code)(Java Doc)
|
|
|