org.kuali.kfs.module.cam.document.web.struts
Class AssetBarCodeInventoryInputFileAction

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
                  extended by org.kuali.kfs.module.cam.document.web.struts.AssetBarCodeInventoryInputFileAction

public class AssetBarCodeInventoryInputFileAction
extends KualiBatchInputFileSetAction

Action class for the CAMS Barcode Inventory upload.


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
AssetBarCodeInventoryInputFileAction()
           
 
Method Summary
 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.
 
Methods inherited from class org.kuali.kfs.sys.web.struts.KualiBatchInputFileSetAction
checkAuthorization, execute, retrieveBatchInputFileSetTypeImpl, start
 
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

AssetBarCodeInventoryInputFileAction

public AssetBarCodeInventoryInputFileAction()
Method Detail

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
Description copied from class: KualiBatchInputFileSetAction
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.

Overrides:
save in class KualiBatchInputFileSetAction
Throws:
Exception
See Also:
Overridden because I needed to validate the file type is correct.

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.

Overrides:
setupForm in class KualiBatchInputFileSetAction


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