org.kuali.kfs.sys.web.struts
Class KualiBatchInputFileSetAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.DispatchAction
          extended by org.kuali.rice.kns.web.struts.action.KualiAction
              extended by org.kuali.kfs.sys.web.struts.KualiBatchInputFileSetAction
Direct Known Subclasses:
AssetBarCodeInventoryInputFileAction

public class KualiBatchInputFileSetAction
extends org.kuali.rice.kns.web.struts.action.KualiAction

This class is the struts action for the batch upload screen that supports file sets


Field Summary
 
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLY
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
KualiBatchInputFileSetAction()
           
 
Method Summary
protected  void checkAuthorization(org.apache.struts.action.ActionForm form, String methodToCall)
           
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 BatchInputFileSetType retrieveBatchInputFileSetTypeImpl(String batchInputTypeName)
          Retrieves a BatchInputFileType implementation from Spring based on the given name.
 org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Sends the uploaded file contents, requested file name, and batch type to the BatchInputTypeService for storage.
 void setupForm(KualiBatchInputFileSetForm form)
          Builds list of filenames that the user has permission to manage, and populates the form member.
 org.apache.struts.action.ActionForward start(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Forwards to the batch upload JSP.
 
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
addMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, doProcessingAfterPost, findMethodToCall, getApplicationBaseUrl, getBasePath, getBusinessObjectAuthorizationService, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, hideAllTabs, performInquiry, performLookup, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, refresh, retrieveLookupParameterValue, showAllTabs, toggleTab, updateTextArea, validateLookupInquiryFullParameter
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, getMethod, getMethodName, getParameter, unspecified
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiBatchInputFileSetAction

public KualiBatchInputFileSetAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Overrides:
execute in class org.kuali.rice.kns.web.struts.action.KualiAction
Throws:
Exception
See Also:
KualiAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

checkAuthorization

protected void checkAuthorization(org.apache.struts.action.ActionForm form,
                                  String methodToCall)
                           throws org.kuali.rice.kns.exception.AuthorizationException
Overrides:
checkAuthorization in class org.kuali.rice.kns.web.struts.action.KualiAction
Throws:
org.kuali.rice.kns.exception.AuthorizationException
See Also:
KualiAction.checkAuthorization(org.apache.struts.action.ActionForm, java.lang.String)

start

public org.apache.struts.action.ActionForward start(org.apache.struts.action.ActionMapping mapping,
                                                    org.apache.struts.action.ActionForm form,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws Exception
Forwards to the batch upload JSP. Initial request.

Throws:
Exception

save

public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws Exception
Sends the uploaded file contents, requested file name, and batch type to the BatchInputTypeService for storage. If errors were encountered, messages will be in GlobalVariables.errorMap, which is checked and set for display by the request processor.

Throws:
Exception

retrieveBatchInputFileSetTypeImpl

public BatchInputFileSetType retrieveBatchInputFileSetTypeImpl(String batchInputTypeName)
Retrieves a BatchInputFileType implementation from Spring based on the given name.


setupForm

public void setupForm(KualiBatchInputFileSetForm form)
Builds list of filenames that the user has permission to manage, and populates the form member. Throws an exception if the batch file set type is not active. Sets the title key from the batch input type. This method must be called before the action handler to ensure proper authorization.



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.