com.micromail.action
Class ComposeAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.apache.struts.actions.DispatchAction
          extended bycom.micromail.action.GeneralDispatchAction
              extended bycom.micromail.action.ComposeAction

public class ComposeAction
extends GeneralDispatchAction

Contains actions associated with the message composition page


Field Summary
 
Fields inherited from class com.micromail.action.GeneralDispatchAction
keyMethodMap, localeMap
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
ComposeAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward addAttachment(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Stores an uploaded attachment and returns to the composition page
 org.apache.struts.action.ActionForward compose(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Proceeds to the message composition page to start a new message.
 org.apache.struts.action.ActionForward deleteAttachments(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deletes selected attachments and returns to the composition page
protected  java.util.Map getKeyMethodMap()
          Gets the Map mapping resource string keys to method names within this class
 org.apache.struts.action.ActionForward saveDraft(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Saves the message in the Drafts folder and proceeds to the drafts folder
 org.apache.struts.action.ActionForward selectAddresses(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Proceeds to the address selection page
 org.apache.struts.action.ActionForward send(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Sends the composed message and returns to the current folder
 
Methods inherited from class com.micromail.action.GeneralDispatchAction
execute
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, unspecified
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComposeAction

public ComposeAction()
Method Detail

getKeyMethodMap

protected java.util.Map getKeyMethodMap()
Gets the Map mapping resource string keys to method names within this class

Specified by:
getKeyMethodMap in class GeneralDispatchAction
Returns:
the Map

compose

public org.apache.struts.action.ActionForward compose(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.lang.Exception
Proceeds to the message composition page to start a new message. Any message currently being composed will be erased

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception

selectAddresses

public org.apache.struts.action.ActionForward selectAddresses(org.apache.struts.action.ActionMapping mapping,
                                                              org.apache.struts.action.ActionForm form,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response)
                                                       throws java.lang.Exception
Proceeds to the address selection page

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception

saveDraft

public org.apache.struts.action.ActionForward saveDraft(org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws java.lang.Exception
Saves the message in the Drafts folder and proceeds to the drafts folder

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception

send

public org.apache.struts.action.ActionForward send(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws java.lang.Exception
Sends the composed message and returns to the current folder

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception

addAttachment

public org.apache.struts.action.ActionForward addAttachment(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws java.lang.Exception
Stores an uploaded attachment and returns to the composition page

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception

deleteAttachments

public org.apache.struts.action.ActionForward deleteAttachments(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws java.lang.Exception
Deletes selected attachments and returns to the composition page

Parameters:
mapping - the Struts ActionMapping object
request - the servlet request
response - the servlet response
Returns:
the ActionForward object
Throws:
java.lang.Exception