gov.nih.nci.caarray.ui.biomaterial
Class ModifyTreatmentAction
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.ModifyTreatmentAction
public final class ModifyTreatmentAction
- 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 |
backhome(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 |
cancelModification(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 |
deleteCompound(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
java.util.Collection |
getUnits(long unitTypeId)
This method is used to get the correct units for the type of measurement
specified by this measurement type id |
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 |
modifyCompound(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 |
saveMeasurement(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 |
setupModify(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 |
setupNewTreatment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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 |
ModifyTreatmentAction
public ModifyTreatmentAction()
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
backhome
public org.apache.struts.action.ActionForward backhome(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
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
ObjectNotExistException
AccessDeniedException
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
saveMeasurement
public org.apache.struts.action.ActionForward saveMeasurement(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,
InsertObjectException
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
ObjectNotExistException
AccessDeniedException
InsertObjectException
cancelModification
public org.apache.struts.action.ActionForward cancelModification(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
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException
AccessDeniedException
ObjectNotExistException
InsertObjectException
modifyCompound
public org.apache.struts.action.ActionForward modifyCompound(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
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
setupModify
public org.apache.struts.action.ActionForward setupModify(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
setupNewTreatment
public org.apache.struts.action.ActionForward setupNewTreatment(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
getUnits
public java.util.Collection getUnits(long unitTypeId)
throws java.io.IOException,
javax.servlet.ServletException,
GeneralException
- This method is used to get the correct units for the type of measurement
specified by this measurement type id
- Parameters:
unitTypeId
-
- Returns:
- Collection the collection of the unit for the given unit type id.
- Throws:
java.io.IOException
javax.servlet.ServletException
GeneralException