com.micromail.action
Class FolderAction

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

public class FolderAction
extends GeneralDispatchAction

This class contains action methods for actions initiated on the folder 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
FolderAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Move selected messages from the current folder to the Trash folder, or delete them completely if the current folder is the Trash folder.
protected  java.util.Map getKeyMethodMap()
          Gets the Map mapping resource string keys to method names within this class
 org.apache.struts.action.ActionForward read(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Retrieves a selected message and proceeds to the read page
 org.apache.struts.action.ActionForward selectFolder(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Selects a folder and proceeds to the folder page
 org.apache.struts.action.ActionForward sort(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Change the sort order
 
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

FolderAction

public FolderAction()
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

sort

public org.apache.struts.action.ActionForward sort(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
Change the sort order

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

delete

public org.apache.struts.action.ActionForward delete(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
Move selected messages from the current folder to the Trash folder, or delete them completely if the current folder is the Trash folder.

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

read

public org.apache.struts.action.ActionForward read(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
Retrieves a selected message and proceeds to the read page

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

selectFolder

public org.apache.struts.action.ActionForward selectFolder(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
Selects a folder and proceeds to the folder page

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