gov.nih.nci.caarray.ui.biomaterial
Class TreatmentActionTwo
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
gov.nih.nci.caarray.ui.core.BaseDispatchAction
gov.nih.nci.caarray.ui.biomaterial.TreatmentActionTwo
public final class TreatmentActionTwo
- extends BaseDispatchAction
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 |
addCompound(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
org.apache.struts.action.ActionForward |
applyProtocol(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is called after a forward from the ApplyProtocol actions
it gets the previously stored treatmentFormTwo that contains all the
previous treatment information that was input before the "Apply Protocol"
button was pressed. |
org.apache.struts.action.ActionForward |
deleteCompound(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
org.apache.struts.action.ActionForward |
loadUnits(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is used to get the correct units for the type of measurement
specified by the user in the bodyTreatmentPageTwo. |
boolean |
loginRequired()
Determines whether a log in is required to access this action |
org.apache.struts.action.ActionForward |
prepForApplyProtocol(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
org.apache.struts.action.ActionForward |
setup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
org.apache.struts.action.ActionForward |
submitPageTwo(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method handles the request from the Treatment add page it reviews
the submitting action and determines the correct forward... |
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 |
TreatmentActionTwo
public TreatmentActionTwo()
applyProtocol
public org.apache.struts.action.ActionForward applyProtocol(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException,
AccessDeniedException,
ObjectNotExistException,
InsertObjectException
- This method is called after a forward from the ApplyProtocol actions
it gets the previously stored treatmentFormTwo that contains all the
previous treatment information that was input before the "Apply Protocol"
button was pressed.
- Parameters:
mapping
- form
- request
- response
-
- Returns:
-
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
AccessDeniedException
ObjectNotExistException
InsertObjectException
loadUnits
public org.apache.struts.action.ActionForward loadUnits(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException
- This method is used to get the correct units for the type of measurement
specified by the user in the bodyTreatmentPageTwo. It uses the
VocabMangager Delegate to get the correct units and stores the values in
a VocabDesc[] and stores them in the TreatmentAddActionForm.
- Parameters:
mapping
- form
- request
- response
-
- Returns:
- @throws
IOException
- Throws:
javax.servlet.ServletException
GeneralException
java.io.IOException
deleteCompound
public org.apache.struts.action.ActionForward deleteCompound(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
addCompound
public org.apache.struts.action.ActionForward addCompound(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException,
ObjectNotExistException
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
ObjectNotExistException
loginRequired
public boolean loginRequired()
- Determines whether a log in is required to access this action
- Specified by:
loginRequired
in class BaseDispatchAction
prepForApplyProtocol
public org.apache.struts.action.ActionForward prepForApplyProtocol(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws GeneralException
- Parameters:
request
- tf2
-
- Throws:
GeneralException
setup
public org.apache.struts.action.ActionForward setup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException,
ObjectNotExistException,
AccessDeniedException
- Parameters:
mapping
- form
- request
- response
-
- Returns:
- @throws
IOException
- Throws:
javax.servlet.ServletException
GeneralException
java.io.IOException
ObjectNotExistException
AccessDeniedException
submitPageTwo
public org.apache.struts.action.ActionForward submitPageTwo(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException,
AccessDeniedException,
ObjectNotExistException,
InsertObjectException
- This method handles the request from the Treatment add page it reviews
the submitting action and determines the correct forward...
- Parameters:
mapping
- form
- request
- response
-
- Returns:
- @throws
IOException
- Throws:
javax.servlet.ServletException
GeneralException
AccessDeniedException
ObjectNotExistException
InsertObjectException
java.io.IOException