com.micromail.action
Class FolderAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
com.micromail.action.GeneralDispatchAction
com.micromail.action.FolderAction
- public class FolderAction
- extends GeneralDispatchAction
This class contains action methods for actions initiated on the folder
page
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 |
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 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 |
FolderAction
public FolderAction()
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 objectrequest
- the servlet requestresponse
- 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 objectrequest
- the servlet requestresponse
- 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 objectrequest
- the servlet requestresponse
- 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 objectrequest
- the servlet requestresponse
- the servlet response
- Returns:
- the ActionForward object
- Throws:
java.lang.Exception