org.kuali.kfs.module.purap.document.web.struts
Class PurchaseOrderAction

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.rice.kns.web.struts.action.KualiDocumentActionBase
                  extended by org.kuali.rice.kns.web.struts.action.KualiTransactionalDocumentActionBase
                      extended by org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentActionBase
                          extended by org.kuali.kfs.sys.web.struts.KualiAccountingDocumentActionBase
                              extended by org.kuali.kfs.module.purap.document.web.struts.PurchasingAccountsPayableActionBase
                                  extended by org.kuali.kfs.module.purap.document.web.struts.PurchasingActionBase
                                      extended by org.kuali.kfs.module.purap.document.web.struts.PurchaseOrderAction

public class PurchaseOrderAction
extends PurchasingActionBase

Struts Action for Purchase Order document.


Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentActionBase
UPDATE_EVENT_ACTIONS
 
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
DOCUMENT_LOAD_COMMANDS
 
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
PurchaseOrderAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward addAsset(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Adds a PurchasingItemCapitalAsset (a container for the Capital Asset Number) to the selected item's list.
 org.apache.struts.action.ActionForward addSensitiveData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when an authorized user presses "Add" button on the "Assign Sensitive Data" page.
 org.apache.struts.action.ActionForward addStipulation(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add a stipulation to the document.
 org.apache.struts.action.ActionForward addVendor(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Add to the Quotes a line to contain a Vendor.
 org.apache.struts.action.ActionForward amendPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user pressed on the Amend button on a Purchase Order page to amend the PO.
protected  org.apache.struts.action.ActionForward askQuestionsAndPerformDocumentAction(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionType, String confirmType, String documentType, String notePrefix, String messageType, String operation)
          For use with a specific set of methods of this class that create new purchase order-derived document types in response to user actions, including closePo, reopenPo, paymentHoldPo, removeHoldPo, splitPo, amendPo, and voidPo.
protected  org.apache.struts.action.ActionForward askSaveQuestions(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String questionType)
          Obtains confirmation and records reasons for the manual status changes which can take place before the purchase order has been routed.
 org.apache.struts.action.ActionForward assignSensitiveData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when an authorized user presses "Sensitive Data" button on the purchase order page.
 org.apache.struts.action.ActionForward cancel(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 cancelPurchaseOrderSplit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked from the page on which the Split PO tab is showing to cancel the splitting of the PO and return it to its original state.
 org.apache.struts.action.ActionForward cancelQuote(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Cancels the process of obtaining quotes.
 org.apache.struts.action.ActionForward cancelSensitiveData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when an authorized user presses "Cancel" button on the "Assign Sensitive Data" page.
protected  void checkForPOWarnings(PurchaseOrderDocument po, org.apache.struts.action.ActionMessages messages)
          Checks on a few conditions that would cause a warning message to be displayed on top of the Purchase Order page.
 org.apache.struts.action.ActionForward closePo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when the user pressed on the Close Order button on a Purchase Order page to Close the PO.
 org.apache.struts.action.ActionForward completeQuote(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Once an awarded Vendor number is present on the PO, verifies the fact, asks the user for confirmation to complete the quoting process with the awarded Vendor, and sets the Vendor information on the purchase order, if confirmation is obtained.
 org.apache.struts.action.ActionForward continuePurchaseOrderSplit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when only the Split Purchase Order tab is showing to continue the process of splitting the PO, once items are chosen to be moved to the new PO.
 org.apache.struts.action.ActionForward createReceivingLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  StringBuffer createSelectedItemIndexes(List<PurchaseOrderItem> items)
          Helper method to create a StringBuffer of the indexes of items that the user has selected for retransmit to be passed in as an attribute to the RetransmitForward page so that we could add these items later on to the pdf page.
 org.apache.struts.action.ActionForward deleteSensitiveData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when an authorized user presses "Delete" button on the "Assign Sensitive Data" page.
 org.apache.struts.action.ActionForward deleteStipulation(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Delete a stipulation from the document.
 org.apache.struts.action.ActionForward deleteVendor(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deletes a Vendor from the list of those from which a Quote should be obtained.
 org.apache.struts.action.ActionForward deselectAllForRetransmit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user clicks on the Deselect All button on a Purchase Order Retransmit document.
 org.apache.struts.action.ActionForward docHandler(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Overrides the docHandler method in the superclass.
protected  void executeManualStatusChange(PurchaseOrderDocument po)
          Applies a manual change of status to the given purchase order document.
 org.apache.struts.action.ActionForward firstTransmitPrintPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is executed when the user clicks on the "print" button on a Purchase Order Print Document page.
protected  String getUrlForPrintPO(String basePath, String docId, String methodToCall)
          Creates a URL to be used in printing the purchase order.
 org.apache.struts.action.ActionForward inactivateItem(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Inactivate an item from the purchase order document.
 org.apache.struts.action.ActionForward initiateQuote(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Sets up the PO document for Quote processing.
protected  void loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
          All document-load operations get routed through here
 org.apache.struts.action.ActionForward paymentHoldPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user pressed on the Payment Hold button on a Purchase Order page to put the PO on hold.
 org.apache.struts.action.ActionForward printingPreviewPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user clicks on the Retransmit button on both the PO tabbed page and on the Purchase Order Retransmit Document page, which is essentially a PO tabbed page with the other irrelevant tabs being hidden.
 org.apache.struts.action.ActionForward printingRetransmitPo(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 RetransmitForward.jsp page so that we could open 2 windows for retransmit, one is to display the PO tabbed page and the other one display the pdf document.
 org.apache.struts.action.ActionForward printingRetransmitPoOnly(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Creates a PDF document based on the PO information and the items that were selected by the user on the Purchase Order Retransmit Document page to be retransmitted, then display the PDF to the browser.
 org.apache.struts.action.ActionForward printPoQuote(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Print a particular selected PO Quote as a PDF.
 org.apache.struts.action.ActionForward printPoQuoteList(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 printPoQuoteListOnly(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Print the list of PO Quote requests.
 org.apache.struts.action.ActionForward printPurchaseOrderPDFOnly(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Prints the PDF only, as opposed to firstTransmitPrintPo, which calls this method (indirectly) to print the PDF, and calls the doc handler to display the PO tabbed page.
 org.apache.struts.action.ActionForward refresh(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Needed to override this to keep from losing Sales Tax information
 org.apache.struts.action.ActionForward removeAlternateVendor(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 removeHoldPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user pressed on the Remove Hold button on a Payment Hold PO page to remove the PO from hold.
 org.apache.struts.action.ActionForward reopenPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user pressed on the Open Order button on a Purchase Order page that has status "Close" to reopen the PO.
 org.apache.struts.action.ActionForward resendPoCxml(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 retransmitPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user clicks on the Retransmit button on both the PO tabbed page and on the Purchase Order Retransmit Document page, which is essentially a PO tabbed page with the other irrelevant tabs being hidden.
protected  org.apache.struts.action.ActionForward returnToPreviousPage(org.apache.struts.action.ActionMapping mapping, org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
          This is a utility method used to prepare to and to return to a previous page, making sure that the buttons will be restored in the process.
 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)
           
 org.apache.struts.action.ActionForward selectAllForRetransmit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user clicks on the Select All button on a Purchase Order Retransmit document.
protected  void setItemSelectedForRetransmitIndicatorFromPOInForm(String selectedItemIndexes, List itemsFromDB)
          Sets the itemSelectedForRetransmitIndicator to true to the items that the user has selected for retransmit.
 org.apache.struts.action.ActionForward splitPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked to initiate the splitting of a Purchase Order.
 org.apache.struts.action.ActionForward submitSensitiveData(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Invoked when an authorized user presses "Submit" button on the "Assign Sensitive Data" page.
 org.apache.struts.action.ActionForward transmitPurchaseOrderQuote(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initiates transmission of a PO Quote request.
 org.apache.struts.action.ActionForward voidPo(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Is invoked when the user pressed on the Void button on a Purchase Order page to void the PO.
 
Methods inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingActionBase
addCapitalAssetLocationByDocument, addCapitalAssetLocationByItem, addItem, addItemCapitalAssetByDocument, addItemCapitalAssetByItem, approve, blanketApprove, calculate, cancelAccountDistribution, changeSystem, clearAllTaxes, clearItemsCommodityCodes, clearNotCurrentYearByDocument, clearNotCurrentYearByItem, customAccountRetrieval, deleteCapitalAssetLocationByDocument, deleteCapitalAssetLocationByItem, deleteItem, deleteItemCapitalAssetByDocument, deleteItemCapitalAssetByItem, deleteSourceLine, doDistribution, downItem, findBuildingCodeFromCapitalAssetBuildingLookup, getCaptialAssetItemNumberFromParameter, getCaptialAssetLocationNumberFromParameter, importItems, processCustomInsertAccountingLine, removeAccounts, requiresCalculate, route, selectNotCurrentYearByDocument, selectNotCurrentYearByItem, selectSystem, selectSystemType, setManufacturerFromVendorByDocument, setManufacturerFromVendorByItem, setupAccountDistribution, setupCAMSSystem, updateBOReferenceforNewItems, updateCamsView, upItem, useOffCampusAssetLocationBuilding, useOffCampusAssetLocationBuildingByDocument, useOffCampusAssetLocationBuildingByItem, useOtherDeliveryBuilding, validateDistributeAccounts
 
Methods inherited from class org.kuali.kfs.module.purap.document.web.struts.PurchasingAccountsPayableActionBase
customCalculate, downloadBOAttachment, getSelectedLineForAccounts, getSourceAccountingLine, hideAllAccounts, insertAccountingLine, insertAccountingLine, insertBONote, insertSourceLine, processAccountingLineOverrides, refreshAccountSummary, showAllAccounts, updateBaseline, uploadAccountingLines
 
Methods inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentActionBase
addCapitalAssetInfo, addCapitalAssetInfoDetailLines, applyCapitalAssetInformation, checkSalesTax, checkSalesTaxRequiredAllLines, checkUploadFile, clearCapitalAssetInfo, clearOverridesThatBecameUnneeded, copy, deepCopyAccountingLinesList, deleteAccountingLine, deleteCapitalAssetInfoDetailLine, deleteTargetLine, execute, getCurrentCapitalAssetInformationObject, getMaxItemLineNumber, getNextItemLineNumberAndIncremented, getObjectTypeCodeFromLine, getTargetAccountingLine, handleSalesTaxRequired, handleSalesTaxRequiredAllLines, hasSalesTaxBeenEntered, hideDetails, insertAccountingLine, insertTargetLine, isSalesTaxRequired, isValidSalesTaxEntered, performBalanceInquiryForAccountingLine, performBalanceInquiryForSourceLine, performBalanceInquiryForTargetLine, performLookup, populateSalesTax, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLines, refreshSalesTaxInfo, removeSalesTax, resetCapitalAssetInfo, showDetails, toggleTab, uploadSourceLines, uploadTargetLines
 
Methods inherited from class org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentActionBase
correct
 
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiTransactionalDocumentActionBase
populateAuthorizationFields
 
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
acknowledge, attemptLockRelease, buildAuthorizationException, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, doProcessingAfterPost, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getIdentityManagementService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, isFormRepresentingLockObject, performRouteReport, populateAdHocActionRequestCodes, promptBeforeValidation, promptBeforeValidation, refreshAdHocRoutingWorkgroupLookups, releaseLocks, reload, returnToSender, selectedAttachmentIndex, sendAdHocRequests, sendNoteWorkflowNotification, setupDocumentExit, setupPessimisticLockMessages, showAllTabs, streamToResponse, supervisorFunctions
 
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction
addMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, findMethodToCall, getApplicationBaseUrl, getBasePath, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, performInquiry, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, 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
 

Field Detail

LOG

protected static org.apache.log4j.Logger LOG
Constructor Detail

PurchaseOrderAction

public PurchaseOrderAction()
Method Detail

refresh

public org.apache.struts.action.ActionForward refresh(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: KualiAccountingDocumentActionBase
Needed to override this to keep from losing Sales Tax information

Overrides:
refresh in class PurchasingActionBase
Throws:
Exception
See Also:
KualiAction.refresh(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

inactivateItem

public org.apache.struts.action.ActionForward inactivateItem(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
                                                      throws Exception
Inactivate an item from the purchase order document.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

askQuestionsAndPerformDocumentAction

protected org.apache.struts.action.ActionForward askQuestionsAndPerformDocumentAction(org.apache.struts.action.ActionMapping mapping,
                                                                                      org.apache.struts.action.ActionForm form,
                                                                                      javax.servlet.http.HttpServletRequest request,
                                                                                      javax.servlet.http.HttpServletResponse response,
                                                                                      String questionType,
                                                                                      String confirmType,
                                                                                      String documentType,
                                                                                      String notePrefix,
                                                                                      String messageType,
                                                                                      String operation)
                                                                               throws Exception
For use with a specific set of methods of this class that create new purchase order-derived document types in response to user actions, including closePo, reopenPo, paymentHoldPo, removeHoldPo, splitPo, amendPo, and voidPo. It employs the question framework to ask the user for a response before creating and routing the new document. The response should consist of a note detailing a reason, and either yes or no. This method can be better understood if it is noted that it will be gone through twice (via the question framework); when each question is originally asked, and again when the yes/no response is processed, for confirmation.

Parameters:
mapping - These are boiler-plate.
form - "
request - "
response - "
questionType - A string identifying the type of question being asked.
confirmType - A string identifying which type of question is being confirmed.
documentType - A string, the type of document to create
notePrefix - A string to appear before the note in the BO Notes tab
messageType - A string to appear on the PO once the question framework is done, describing the action taken
operation - A string, the verb to insert in the original question describing the action to be taken
Returns:
An ActionForward
Throws:
Exception

closePo

public org.apache.struts.action.ActionForward closePo(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Invoked when the user pressed on the Close Order button on a Purchase Order page to Close the PO. It will display the question page to the user to ask whether the user really wants to close the PO and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke a service method to do the processing for closing a PO, then display a Single Confirmation page to inform the user that the PO Close Document has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

paymentHoldPo

public org.apache.struts.action.ActionForward paymentHoldPo(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws Exception
Is invoked when the user pressed on the Payment Hold button on a Purchase Order page to put the PO on hold. It will display the question page to the user to ask whether the user really wants to put the PO on hold and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke a service method to do the processing for putting a PO on hold, then display a Single Confirmation page to inform the user that the PO Payment Hold Document has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

removeHoldPo

public org.apache.struts.action.ActionForward removeHoldPo(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Is invoked when the user pressed on the Remove Hold button on a Payment Hold PO page to remove the PO from hold. It will display the question page to the user to ask whether the user really wants to remove the PO from hold and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke a service method to do the processing for removing a PO from hold, then display a Single Confirmation page to inform the user that the PO Remove Hold Document has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

reopenPo

public org.apache.struts.action.ActionForward reopenPo(org.apache.struts.action.ActionMapping mapping,
                                                       org.apache.struts.action.ActionForm form,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
                                                throws Exception
Is invoked when the user pressed on the Open Order button on a Purchase Order page that has status "Close" to reopen the PO. It will display the question page to the user to ask whether the user really wants to reopen the PO and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke the a service method to do the processing for reopening a PO, then display a Single Confirmation page to inform the user that the PurchaseOrderReopenDocument has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception
See Also:
PurchaseOrderReopenDocument

amendPo

public org.apache.struts.action.ActionForward amendPo(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Is invoked when the user pressed on the Amend button on a Purchase Order page to amend the PO. It will display the question page to the user to ask whether the user really wants to amend the PO and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke a service method to do the processing for amending the PO, then display a Single Confirmation page to inform the user that the PurchaseOrderAmendmentDocument has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception
See Also:
PurchaseOrderAmendmentDocument

voidPo

public org.apache.struts.action.ActionForward voidPo(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws Exception
Is invoked when the user pressed on the Void button on a Purchase Order page to void the PO. It will display the question page to the user to ask whether the user really wants to void the PO and ask the user to enter a reason in the text area. If the user has entered the reason, it will invoke a service method to do the processing for voiding the PO, then display a Single Confirmation page to inform the user that the PurchaseOrderVoidDocument has been routed.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception
See Also:
PurchaseOrderVoidDocument

splitPo

public org.apache.struts.action.ActionForward splitPo(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Invoked to initiate the splitting of a Purchase Order. Displays a question page to ask for a reason and confirmation of the user's desire to split the Purchase Order, and, if confirmed, a page on which the Split PO tab only is showing, and the items to move to the new PO are chosen. If that is done, and the user continues, a new Split Purchase Order document will be created, with the chosen items. That same set of items will be deleted from the original Purchase Order.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception
See Also:
PurchaseOrderSplitDocument

continuePurchaseOrderSplit

public org.apache.struts.action.ActionForward continuePurchaseOrderSplit(org.apache.struts.action.ActionMapping mapping,
                                                                         org.apache.struts.action.ActionForm form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
                                                                  throws Exception
Invoked when only the Split Purchase Order tab is showing to continue the process of splitting the PO, once items are chosen to be moved to the new PO.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

cancelPurchaseOrderSplit

public org.apache.struts.action.ActionForward cancelPurchaseOrderSplit(org.apache.struts.action.ActionMapping mapping,
                                                                       org.apache.struts.action.ActionForm form,
                                                                       javax.servlet.http.HttpServletRequest request,
                                                                       javax.servlet.http.HttpServletResponse response)
                                                                throws Exception
Invoked from the page on which the Split PO tab is showing to cancel the splitting of the PO and return it to its original state.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

assignSensitiveData

public org.apache.struts.action.ActionForward assignSensitiveData(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Invoked when an authorized user presses "Sensitive Data" button on the purchase order page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

submitSensitiveData

public org.apache.struts.action.ActionForward submitSensitiveData(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Invoked when an authorized user presses "Submit" button on the "Assign Sensitive Data" page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

cancelSensitiveData

public org.apache.struts.action.ActionForward cancelSensitiveData(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Invoked when an authorized user presses "Cancel" button on the "Assign Sensitive Data" page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

addSensitiveData

public org.apache.struts.action.ActionForward addSensitiveData(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
Invoked when an authorized user presses "Add" button on the "Assign Sensitive Data" page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

deleteSensitiveData

public org.apache.struts.action.ActionForward deleteSensitiveData(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Invoked when an authorized user presses "Delete" button on the "Assign Sensitive Data" page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServeletRequest
response - The HttpServeletResponse
Returns:
An ActionForward
Throws:
Exception

returnToPreviousPage

protected org.apache.struts.action.ActionForward returnToPreviousPage(org.apache.struts.action.ActionMapping mapping,
                                                                      org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
This is a utility method used to prepare to and to return to a previous page, making sure that the buttons will be restored in the process.

Parameters:
kualiDocumentFormBase - The Form, considered as a KualiDocumentFormBase, as it typically is here.
Returns:
An actionForward mapping back to the original page.

firstTransmitPrintPo

public org.apache.struts.action.ActionForward firstTransmitPrintPo(org.apache.struts.action.ActionMapping mapping,
                                                                   org.apache.struts.action.ActionForm form,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
Is executed when the user clicks on the "print" button on a Purchase Order Print Document page. On a non javascript enabled browser, it will display a page with 2 buttons. One is to display the PDF, the other is to view the PO tabbed page where the PO document statuses, buttons, etc have already been updated (the updates of those occurred while the performPurchaseOrderFirstTransmitViaPrinting method is invoked. On a javascript enabled browser, it will display both the PO tabbed page containing the updated PO document info and the pdf on the next window/tab of the browser.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

getUrlForPrintPO

protected String getUrlForPrintPO(String basePath,
                                  String docId,
                                  String methodToCall)
Creates a URL to be used in printing the purchase order.

Parameters:
basePath - String: The base path of the current URL
docId - String: The document ID of the document to be printed
methodToCall - String: The name of the method that will be invoked to do this particular print
Returns:
The URL

printPurchaseOrderPDFOnly

public org.apache.struts.action.ActionForward printPurchaseOrderPDFOnly(org.apache.struts.action.ActionMapping mapping,
                                                                        org.apache.struts.action.ActionForm form,
                                                                        javax.servlet.http.HttpServletRequest request,
                                                                        javax.servlet.http.HttpServletResponse response)
                                                                 throws Exception
Prints the PDF only, as opposed to firstTransmitPrintPo, which calls this method (indirectly) to print the PDF, and calls the doc handler to display the PO tabbed page.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

printPoQuote

public org.apache.struts.action.ActionForward printPoQuote(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Print a particular selected PO Quote as a PDF.

Parameters:
mapping - An ActionMapping
form - An ActionForm -- The PO Quote must be selected here.
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

printPoQuoteList

public org.apache.struts.action.ActionForward printPoQuoteList(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
Throws:
Exception

printPoQuoteListOnly

public org.apache.struts.action.ActionForward printPoQuoteListOnly(org.apache.struts.action.ActionMapping mapping,
                                                                   org.apache.struts.action.ActionForm form,
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
                                                            throws Exception
Print the list of PO Quote requests.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

transmitPurchaseOrderQuote

public org.apache.struts.action.ActionForward transmitPurchaseOrderQuote(org.apache.struts.action.ActionMapping mapping,
                                                                         org.apache.struts.action.ActionForm form,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
                                                                  throws Exception
Initiates transmission of a PO Quote request.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

selectAllForRetransmit

public org.apache.struts.action.ActionForward selectAllForRetransmit(org.apache.struts.action.ActionMapping mapping,
                                                                     org.apache.struts.action.ActionForm form,
                                                                     javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpServletResponse response)
                                                              throws Exception
Is invoked when the user clicks on the Select All button on a Purchase Order Retransmit document. It will select the checkboxes of all the items to be included in the retransmission of the PO.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

deselectAllForRetransmit

public org.apache.struts.action.ActionForward deselectAllForRetransmit(org.apache.struts.action.ActionMapping mapping,
                                                                       org.apache.struts.action.ActionForm form,
                                                                       javax.servlet.http.HttpServletRequest request,
                                                                       javax.servlet.http.HttpServletResponse response)
                                                                throws Exception
Is invoked when the user clicks on the Deselect All button on a Purchase Order Retransmit document. It will uncheck the checkboxes of all the items to be excluded from the retransmission of the PO.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

retransmitPo

public org.apache.struts.action.ActionForward retransmitPo(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Is invoked when the user clicks on the Retransmit button on both the PO tabbed page and on the Purchase Order Retransmit Document page, which is essentially a PO tabbed page with the other irrelevant tabs being hidden. If it was invoked from the PO tabbed page, if the PO's pending indicator is false, this method will invoke a method in the PurchaseOrderService to update the flags, create the PurchaseOrderRetransmitDocument and route it. If the routing was successful, we'll display the Purchase Order Retransmit Document page to the user, containing the newly created and routed PurchaseOrderRetransmitDocument and a retransmit button as well as a list of items that the user can select to be retransmitted. If it was invoked from the Purchase Order Retransmit Document page, we'll invoke the retransmitPurchaseOrderPDF method to create a PDF document based on the PO information and the items that were selected by the user on the Purchase Order Retransmit Document page to be retransmitted, then display the PDF to the browser.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

printingPreviewPo

public org.apache.struts.action.ActionForward printingPreviewPo(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws Exception
Is invoked when the user clicks on the Retransmit button on both the PO tabbed page and on the Purchase Order Retransmit Document page, which is essentially a PO tabbed page with the other irrelevant tabs being hidden. If it was invoked from the PO tabbed page, if the PO's pending indicator is false, this method will invoke a method in the PurchaseOrderService to update the flags, create the PurchaseOrderRetransmitDocument and route it. If the routing was successful, we'll display the Purchase Order Retransmit Document page to the user, containing the newly created and routed PurchaseOrderRetransmitDocument and a retransmit button as well as a list of items that the user can select to be retransmitted. If it was invoked from the Purchase Order Retransmit Document page, we'll invoke the retransmitPurchaseOrderPDF method to create a PDF document based on the PO information and the items that were selected by the user on the Purchase Order Retransmit Document page to be retransmitted, then display the PDF to the browser.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

printingRetransmitPo

public org.apache.struts.action.ActionForward printingRetransmitPo(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 RetransmitForward.jsp page so that we could open 2 windows for retransmit, one is to display the PO tabbed page and the other one display the pdf document.

Parameters:
mapping -
form -
request -
response -
Returns:
Throws:
Exception

createSelectedItemIndexes

protected StringBuffer createSelectedItemIndexes(List<PurchaseOrderItem> items)
Helper method to create a StringBuffer of the indexes of items that the user has selected for retransmit to be passed in as an attribute to the RetransmitForward page so that we could add these items later on to the pdf page.

Parameters:
items - The List of items on the PurchaseOrderDocument.
Returns:

printingRetransmitPoOnly

public org.apache.struts.action.ActionForward printingRetransmitPoOnly(org.apache.struts.action.ActionMapping mapping,
                                                                       org.apache.struts.action.ActionForm form,
                                                                       javax.servlet.http.HttpServletRequest request,
                                                                       javax.servlet.http.HttpServletResponse response)
                                                                throws Exception
Creates a PDF document based on the PO information and the items that were selected by the user on the Purchase Order Retransmit Document page to be retransmitted, then display the PDF to the browser.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

setItemSelectedForRetransmitIndicatorFromPOInForm

protected void setItemSelectedForRetransmitIndicatorFromPOInForm(String selectedItemIndexes,
                                                                 List itemsFromDB)
Sets the itemSelectedForRetransmitIndicator to true to the items that the user has selected for retransmit.

Parameters:
selectedItemIndexes - The String containing the indexes of items selected to be retransmitted, separated by comma.
itemsFromDB - The List of items of the PurchaseOrderDocument obtained from the database.

checkForPOWarnings

protected void checkForPOWarnings(PurchaseOrderDocument po,
                                  org.apache.struts.action.ActionMessages messages)
Checks on a few conditions that would cause a warning message to be displayed on top of the Purchase Order page.

Parameters:
po - the PurchaseOrderDocument whose status and indicators are to be checked in the conditions

addStipulation

public org.apache.struts.action.ActionForward addStipulation(org.apache.struts.action.ActionMapping mapping,
                                                             org.apache.struts.action.ActionForm form,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
                                                      throws Exception
Add a stipulation to the document.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

deleteStipulation

public org.apache.struts.action.ActionForward deleteStipulation(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws Exception
Delete a stipulation from the document.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

docHandler

public org.apache.struts.action.ActionForward docHandler(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 the docHandler method in the superclass. In addition to doing the normal process in the superclass and returning its action forward from the superclass, it also invokes the checkForPOWarnings method to check on a few conditions that could have caused warning messages to be displayed on top of Purchase Order page.

Overrides:
docHandler in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
Throws:
Exception
See Also:
KualiDocumentActionBase.docHandler(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

initiateQuote

public org.apache.struts.action.ActionForward initiateQuote(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws Exception
Sets up the PO document for Quote processing.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

addVendor

public org.apache.struts.action.ActionForward addVendor(org.apache.struts.action.ActionMapping mapping,
                                                        org.apache.struts.action.ActionForm form,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
                                                 throws Exception
Add to the Quotes a line to contain a Vendor.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

deleteVendor

public org.apache.struts.action.ActionForward deleteVendor(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Deletes a Vendor from the list of those from which a Quote should be obtained.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

completeQuote

public org.apache.struts.action.ActionForward completeQuote(org.apache.struts.action.ActionMapping mapping,
                                                            org.apache.struts.action.ActionForm form,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response)
                                                     throws Exception
Once an awarded Vendor number is present on the PO, verifies the fact, asks the user for confirmation to complete the quoting process with the awarded Vendor, and sets the Vendor information on the purchase order, if confirmation is obtained.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

cancelQuote

public org.apache.struts.action.ActionForward cancelQuote(org.apache.struts.action.ActionMapping mapping,
                                                          org.apache.struts.action.ActionForm form,
                                                          javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response)
                                                   throws Exception
Cancels the process of obtaining quotes. Checks whether any of the quote requests have been transmitted. If none have, tries to obtain confirmation from the user for the cancellation. If confirmation is obtained, clears out the list of Vendors from which to obtain quotes and writes the given reason to a note on the PO.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

cancel

public org.apache.struts.action.ActionForward cancel(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:
cancel in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
Throws:
Exception
See Also:
KualiDocumentActionBase.cancel(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

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
Overrides:
save in class KualiAccountingDocumentActionBase
Throws:
Exception
See Also:
KualiDocumentActionBase.save(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

askSaveQuestions

protected org.apache.struts.action.ActionForward askSaveQuestions(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response,
                                                                  String questionType)
Obtains confirmation and records reasons for the manual status changes which can take place before the purchase order has been routed. If confirmation is given, changes the status, saves, and records the given reason in an note on the purchase order.

Parameters:
mapping - An ActionMapping
form - An ActionForm
request - The HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward

executeManualStatusChange

protected void executeManualStatusChange(PurchaseOrderDocument po)
Applies a manual change of status to the given purchase order document.

Parameters:
po - A PurchaseOrderDocument

loadDocument

protected void loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
                     throws org.kuali.rice.kew.exception.WorkflowException
Description copied from class: KualiAccountingDocumentActionBase
All document-load operations get routed through here

Overrides:
loadDocument in class PurchasingActionBase
Throws:
org.kuali.rice.kew.exception.WorkflowException
See Also:
PurchasingAccountsPayableActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)

addAsset

public org.apache.struts.action.ActionForward addAsset(org.apache.struts.action.ActionMapping mapping,
                                                       org.apache.struts.action.ActionForm form,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
                                                throws Exception
Adds a PurchasingItemCapitalAsset (a container for the Capital Asset Number) to the selected item's list.

Parameters:
mapping - An ActionMapping
form - The Form
request - An HttpServletRequest
response - The HttpServletResponse
Returns:
An ActionForward
Throws:
Exception

removeAlternateVendor

public org.apache.struts.action.ActionForward removeAlternateVendor(org.apache.struts.action.ActionMapping mapping,
                                                                    org.apache.struts.action.ActionForm form,
                                                                    javax.servlet.http.HttpServletRequest request,
                                                                    javax.servlet.http.HttpServletResponse response)
                                                             throws Exception
Throws:
Exception

createReceivingLine

public org.apache.struts.action.ActionForward createReceivingLine(org.apache.struts.action.ActionMapping mapping,
                                                                  org.apache.struts.action.ActionForm form,
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws Exception
Throws:
Exception

resendPoCxml

public org.apache.struts.action.ActionForward resendPoCxml(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
                                                    throws Exception
Throws:
Exception


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