| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
org.kuali.rice.kns.web.struts.action.KualiAction
org.kuali.rice.kns.web.struts.action.KualiDocumentActionBase
org.kuali.rice.kns.web.struts.action.KualiTransactionalDocumentActionBase
org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentActionBase
org.kuali.kfs.sys.web.struts.KualiAccountingDocumentActionBase
org.kuali.kfs.fp.document.web.struts.VoucherAction
public class VoucherAction
This class piggy backs on all of the functionality in the FinancialSystemTransactionalDocumentActionBase but is necessary for this document type. Vouchers are unique in that they define several fields that aren't typically used by the other financial transaction processing eDocs (i.e. external system fields, object type override, credit and debit amounts).
| Field Summary | 
|---|
| Fields inherited from class org.kuali.kfs.sys.web.struts.KualiAccountingDocumentActionBase | 
|---|
LOG, 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 | |
|---|---|
VoucherAction()
 | 
|
| Method Summary | |
|---|---|
 org.apache.struts.action.ActionForward | 
copy(org.apache.struts.action.ActionMapping mapping,
         org.apache.struts.action.ActionForm form,
         javax.servlet.http.HttpServletRequest request,
         javax.servlet.http.HttpServletResponse response)
Overridden to reset the available and selected accounting periods on the form, so that copies are moved forward to the current accounting period correctly  | 
 org.apache.struts.action.ActionForward | 
correct(org.apache.struts.action.ActionMapping mapping,
               org.apache.struts.action.ActionForm form,
               javax.servlet.http.HttpServletRequest request,
               javax.servlet.http.HttpServletResponse response)
Overrides to call super, and then to repopulate the credit/debit amounts b/c the credit/debit code might change during a voucher error correction.  | 
 org.apache.struts.action.ActionForward | 
deleteSourceLine(org.apache.struts.action.ActionMapping mapping,
                                 org.apache.struts.action.ActionForm form,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
Overrides parent to remove the associated helper line also, and then it call the parent's implementation.  | 
 org.apache.struts.action.ActionForward | 
insertSourceLine(org.apache.struts.action.ActionMapping mapping,
                                 org.apache.struts.action.ActionForm form,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
Overrides parent to first populate the new source line with the correct debit or credit value, then it calls the parent's implementation.  | 
protected  void | 
loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
Overrides the parent to make sure that the AV specific accounting line helper forms are properly populated when the document is first loaded.  | 
protected  void | 
populateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)
This method builds the corresponding list of voucher acounting line helper objects so that a user can differentiate between credit and debit fields.  | 
protected  VoucherAccountingLineHelper | 
populateNewVoucherAccountingLineHelper(VoucherForm voucherForm)
This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.  | 
protected  void | 
populateSelectedAccountingPeriod(VoucherDocument voucherDocument,
                                                                 VoucherForm voucherForm)
This method parses the accounting period value from the bo and builds the right string to pass to the form object as the selected value.  | 
protected  VoucherAccountingLineHelper | 
populateVoucherAccountingLineHelper(VoucherForm voucherForm)
This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.  | 
protected  org.apache.struts.action.ActionForward | 
processRouteOutOfBalanceDocumentConfirmationQuestion(org.apache.struts.action.ActionMapping mapping,
                                                                                                         org.apache.struts.action.ActionForm form,
                                                                                                         javax.servlet.http.HttpServletRequest request,
                                                                                                         javax.servlet.http.HttpServletResponse response)
This helper method determines from the request object instance whether or not the user has been prompted about the journal being out of balance.  | 
protected  void | 
uploadAccountingLines(boolean isSource,
                                           org.apache.struts.action.ActionForm form)
This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the document object.  | 
 org.apache.struts.action.ActionForward | 
uploadSourceLines(org.apache.struts.action.ActionMapping mapping,
                                   org.apache.struts.action.ActionForm form,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document.  | 
| 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, cancel, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, docHandler, doProcessingAfterPost, downloadBOAttachment, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getIdentityManagementService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, insertBONote, 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 | 
| Constructor Detail | 
|---|
public VoucherAction()
| Method Detail | 
|---|
public org.apache.struts.action.ActionForward correct(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
correct in class FinancialSystemTransactionalDocumentActionBaseExceptionFinancialSystemTransactionalDocumentActionBase.correct(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward insertSourceLine(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
insertSourceLine in class KualiAccountingDocumentActionBaseExceptionorg.kuali.module.financial.web.struts.action.KualiFinancialDocumentActionBase#insertSourceLine(org.apache.struts.action.ActionMapping,
      org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public org.apache.struts.action.ActionForward deleteSourceLine(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               javax.servlet.http.HttpServletRequest request,
                                                               javax.servlet.http.HttpServletResponse response)
                                                        throws Exception
deleteSourceLine in class KualiAccountingDocumentActionBaseExceptionorg.kuali.module.financial.web.struts.action.KualiFinancialDocumentActionBase#deleteSourceLine(org.apache.struts.action.ActionMapping,
      org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected void loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
                     throws org.kuali.rice.kew.exception.WorkflowException
loadDocument in class KualiAccountingDocumentActionBaseorg.kuali.rice.kew.exception.WorkflowExceptionKualiDocumentActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)
protected void populateSelectedAccountingPeriod(VoucherDocument voucherDocument,
                                                VoucherForm voucherForm)
voucherDocument - voucherForm - protected VoucherAccountingLineHelper populateVoucherAccountingLineHelper(VoucherForm voucherForm)
voucherForm - 
protected void populateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)
voucherForm - 
protected org.apache.struts.action.ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(org.apache.struts.action.ActionMapping mapping,
                                                                                                      org.apache.struts.action.ActionForm form,
                                                                                                      javax.servlet.http.HttpServletRequest request,
                                                                                                      javax.servlet.http.HttpServletResponse response)
                                                                                               throws Exception
mapping - form - request - response - 
Exceptionprotected VoucherAccountingLineHelper populateNewVoucherAccountingLineHelper(VoucherForm voucherForm)
voucherForm - 
public org.apache.struts.action.ActionForward uploadSourceLines(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response)
                                                         throws FileNotFoundException,
                                                                IOException
uploadSourceLines in class KualiAccountingDocumentActionBasemapping - form - request - response - 
FileNotFoundException
IOException
protected void uploadAccountingLines(boolean isSource,
                                     org.apache.struts.action.ActionForm form)
                              throws FileNotFoundException,
                                     IOException
uploadAccountingLines in class KualiAccountingDocumentActionBaseisSource - form - 
FileNotFoundException
IOException
public org.apache.struts.action.ActionForward copy(org.apache.struts.action.ActionMapping mapping,
                                                   org.apache.struts.action.ActionForm form,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response)
                                            throws Exception
copy in class KualiAccountingDocumentActionBaseExceptionKualiAccountingDocumentActionBase.copy(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||