gov.nih.nci.caarray.ui.experiment
Class HybridizationFileUploadAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by gov.nih.nci.caarray.ui.core.BaseDispatchAction
              extended by gov.nih.nci.caarray.ui.experiment.HybridizationFileUploadAction

public class HybridizationFileUploadAction
extends BaseDispatchAction

The Action class that handles hybridization annotation data input from the users and launches the file upload applet so users will be be able to select files they want to be stored by the CaArray application through file uploading process.


Field Summary
 
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
HybridizationFileUploadAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward cancelFileUpload(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 upon cancel button press by the user to cancel upload process.
 org.apache.struts.action.ActionForward experimentBasicInfo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method retrieves array design information and hibridization file types, and presents them to the users to make a proper selection.
 org.apache.struts.action.ActionForward featureProtocolInfo(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 the combined form of getFeatureProtocolData method and saveFeatureProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.
 org.apache.struts.action.ActionForward getHybridizationProtocol(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method transfers array batch, array identifier, labeled extracts and factors information user just selected into a container object HybridizationFileUploadData, and then retrieves and presents all available hybridization protocols to the users to make a selection.
 org.apache.struts.action.ActionForward getLabeledExtractSelection(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method gives user choices of a physical array batch information, a physical array identifier, labeled extracts for the hybridization, and factors that affect the experiment outcomes.
 org.apache.struts.action.ActionForward hybridizationProtocolInfo(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 the combined form of getHybridizationProtocolDesc method and saveHybridizationProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.
 org.apache.struts.action.ActionForward imageProtocolInfo(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 the combined form of getImageProtocolData method and saveImageProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.
 boolean loginRequired()
          To make sure that calling to any method in this class requires security check.
 
Methods inherited from class gov.nih.nci.caarray.ui.core.BaseDispatchAction
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

HybridizationFileUploadAction

public HybridizationFileUploadAction()
Method Detail

loginRequired

public boolean loginRequired()
To make sure that calling to any method in this class requires security check.

Specified by:
loginRequired in class BaseDispatchAction

cancelFileUpload

public org.apache.struts.action.ActionForward cancelFileUpload(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws AccessDeniedException,
                                                               GeneralException
This method is called upon cancel button press by the user to cancel upload process.

Throws:
AccessDeniedException
GeneralException

experimentBasicInfo

public org.apache.struts.action.ActionForward experimentBasicInfo(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws AccessDeniedException,
                                                                  GeneralException
This method retrieves array design information and hibridization file types, and presents them to the users to make a proper selection. These basic information is required for file parsing using MAGE api.

Throws:
AccessDeniedException
GeneralException

getLabeledExtractSelection

public org.apache.struts.action.ActionForward getLabeledExtractSelection(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
This method gives user choices of a physical array batch information, a physical array identifier, labeled extracts for the hybridization, and factors that affect the experiment outcomes. These information will be saved as part of data annotation for the hybridization data files.

Throws:
java.lang.Exception

getHybridizationProtocol

public org.apache.struts.action.ActionForward getHybridizationProtocol(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
This method transfers array batch, array identifier, labeled extracts and factors information user just selected into a container object HybridizationFileUploadData, and then retrieves and presents all available hybridization protocols to the users to make a selection.

Throws:
java.lang.Exception

hybridizationProtocolInfo

public org.apache.struts.action.ActionForward hybridizationProtocolInfo(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
This method is the combined form of getHybridizationProtocolDesc method and saveHybridizationProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.

Throws:
java.lang.Exception

imageProtocolInfo

public org.apache.struts.action.ActionForward imageProtocolInfo(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
This method is the combined form of getImageProtocolData method and saveImageProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.

Throws:
java.lang.Exception

featureProtocolInfo

public org.apache.struts.action.ActionForward featureProtocolInfo(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
This method is the combined form of getFeatureProtocolData method and saveFeatureProtocolInfo method due to the change in the jsp page where a single method parameter is used for submitting the form data.

Throws:
java.lang.Exception