uk.ac.ebi.intact.application.editor.struts.action
Class SidebarDispatchAction
java.lang.Object
|
+--org.apache.struts.action.Action
|
+--org.apache.struts.actions.DispatchAction
|
+--org.apache.struts.actions.LookupDispatchAction
|
+--uk.ac.ebi.intact.application.editor.struts.framework.AbstractEditorDispatchAction
|
+--uk.ac.ebi.intact.application.editor.struts.action.SidebarDispatchAction
- All Implemented Interfaces:
- ForwardConstants
- public class SidebarDispatchAction
- extends AbstractEditorDispatchAction
Action class for sidebar events. Actions are dispatched
according to 'dispatch' parameter.
- Version:
- $Id: SidebarDispatchAction.java,v 1.22 2004/02/13 18:21:43 smudali Exp $
- Author:
- Sugath Mudali (smudali@ebi.ac.uk)
| Fields inherited from class org.apache.struts.actions.LookupDispatchAction |
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 |
|
Method Summary |
org.apache.struts.action.ActionForward |
create(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates a new CV object for a topic. |
protected java.util.Map |
getKeyMethodMap()
Provides the mapping from resource key to method name. |
org.apache.struts.action.ActionForward |
search(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Searches the CV database according to search criteria from the Form
object. |
| Methods inherited from class org.apache.struts.actions.LookupDispatchAction |
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 |
SidebarDispatchAction
public SidebarDispatchAction()
getKeyMethodMap
protected java.util.Map getKeyMethodMap()
- Provides the mapping from resource key to method name.
- Specified by:
getKeyMethodMap in class org.apache.struts.actions.LookupDispatchAction
- Returns:
- Resource key / method name map.
search
public org.apache.struts.action.ActionForward search(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
- Searches the CV database according to search criteria from the Form
object.
- Parameters:
mapping - the ActionMapping used to select this instanceform - the optional ActionForm bean for this request
(if any).request - the HTTP request we are processingresponse - the HTTP response we are creating
- Returns:
- failure mapping for any errors in searching the CV database;
no matches if the search failed to find any records; success if the
search produced only a single match; finally, results mapping if the
search produced multiple results.
- Throws:
java.lang.Exception - for any uncaught errors.
create
public org.apache.struts.action.ActionForward create(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
- Creates a new CV object for a topic. The topic is obtained from the form.
- Parameters:
mapping - the ActionMapping used to select this instanceform - the optional ActionForm bean for this request
(if any).request - the HTTP request we are processingresponse - the HTTP response we are creating
- Returns:
- failure mapping for any errors in searching the CV database for
the topic; success mapping if a CV object was created successfully.
- Throws:
java.lang.Exception - for any uncaught errors.
IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk