public class KualiAccountingDocumentActionBase extends FinancialSystemTransactionalDocumentActionBase
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOG |
protected static Set |
UPDATE_EVENT_ACTIONS |
MODULE_LOCKED_MESSAGE, MODULE_LOCKED_URL_SUFFIXDOCUMENT_LOAD_COMMANDS| Constructor and Description |
|---|
KualiAccountingDocumentActionBase() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.struts.action.ActionForward |
approve(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 |
blanketApprove(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
checkSalesTax(AccountingDocument document,
AccountingLine line,
boolean source,
boolean newLine,
int index)
Encapsulate the rule check so we can call it from multiple places
|
protected boolean |
checkSalesTaxRequiredAllLines(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase,
List<AccountingLine> baselineAcctingLines) |
protected void |
checkUploadFile(org.apache.struts.upload.FormFile file) |
protected List |
deepCopyAccountingLinesList(List originals)
TODO: remove this method once baseline accounting lines has been removed
|
protected void |
deleteAccountingLine(boolean isSource,
KualiAccountingDocumentFormBase financialDocumentForm,
int deleteIndex)
Deletes the source or target accountingLine with the given index from the given form.
|
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)
This method will remove a SourceAccountingLine from a FinancialDocument.
|
org.apache.struts.action.ActionForward |
deleteTargetLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method will remove a TargetAccountingLine from a FinancialDocument.
|
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)
Adds check for accountingLine updates, generates and dispatches any events caused by such updates
|
protected String |
getObjectTypeCodeFromLine(AccountingLine line)
A hook so that most accounting lines - which don't have object types - can have their object type codes used in balance
inquiries
|
protected SourceAccountingLine |
getSourceAccountingLine(org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request)
This method is a helper method that will return a source accounting line.
|
protected TargetAccountingLine |
getTargetAccountingLine(org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request) |
protected void |
handleSalesTaxRequired(AccountingDocument transDoc,
AccountingLine formLine,
boolean source,
boolean newLine,
int index)
This method checks to see if the given accounting needs sales tax and if it does it sets the salesTaxRequired variable on the
line If it doesn't and it has it then it removes the sales tax information from the line This method is called from the
execute() on all accounting lines that have been edited or lines that have already been added to the document, not on new
lines
|
protected void |
handleSalesTaxRequiredAllLines(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase,
List<AccountingLine> baselineAcctingLines)
This method is called from the createDocument and processes through all the accouting lines and checks to see if they need
sales tax fields
|
protected boolean |
hasSalesTaxBeenEntered(AccountingLine accountingLine,
boolean source,
boolean newLine,
int index) |
org.apache.struts.action.ActionForward |
hideDetails(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is triggered when the user toggles the show/hide button to "hide" thus making the UI render without any of the
accounting line labels/descriptions showing up underneath the values in the UI.
|
protected void |
insertAccountingLine(boolean isSource,
KualiAccountingDocumentFormBase financialDocumentForm,
AccountingLine line)
Adds the given accountingLine to the appropriate form-related data structures.
|
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)
This action executes an insert of a SourceAccountingLine into a document only after validating the accounting line and
checking any appropriate business rules.
|
org.apache.struts.action.ActionForward |
insertTargetLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method will add a TargetAccountingLine to a FinancialDocument.
|
protected boolean |
isSalesTaxRequired(AccountingDocument financialDocument,
AccountingLine accountingLine)
This method checks to see if this doctype needs sales tax If it does then it checks to see if the account and object code
require sales tax If it does then it returns true.
|
protected boolean |
isValidSalesTaxEntered(AccountingLine accountingLine,
boolean source,
boolean newLine,
int index)
This method checks to see if the sales tax information was put into the accounting line
|
protected void |
loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
All document-load operations get routed through here
|
protected org.apache.struts.action.ActionForward |
performBalanceInquiryForAccountingLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
AccountingLine line)
This method handles preparing all of the accounting line data so that it can be pushed up to the balance inquiries for
populating the search criteria of each.
|
org.apache.struts.action.ActionForward |
performBalanceInquiryForSourceLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Takes care of storing the action form in the User session and forwarding to the balance inquiry report menu action for a
source accounting line.
|
org.apache.struts.action.ActionForward |
performBalanceInquiryForTargetLine(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Takes care of storing the action form in the User session and forwarding to the balance inquiry report menu action for a
target accounting line.
|
org.apache.struts.action.ActionForward |
performLookup(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
populateSalesTax(AccountingLine line)
This method populates the sales tax for a given accounting line with the appropriate primary key fields from the accounting
line since OJB won't do it automatically for us
|
protected void |
processAccountingLineOverrides(AccountingDocument financialDocument,
List accountingLines) |
protected void |
processAccountingLineOverrides(AccountingLine line) |
protected void |
processAccountingLineOverrides(KualiAccountingDocumentFormBase transForm) |
protected void |
processAccountingLineOverrides(List accountingLines) |
protected void |
processAccountingLines(AccountingDocument transDoc,
KualiAccountingDocumentFormBase transForm,
String lineSet) |
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
|
protected void |
refreshSalesTaxInfo(org.apache.struts.action.ActionForm form)
This method refreshes the sales tax fields on a refresh or tab toggle so that all the information that was there before is
still there after a state change
|
protected void |
removeSalesTax(AccountingLine accountingLine)
This method removes the sales tax information from a line that no longer requires it
|
org.apache.struts.action.ActionForward |
route(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 |
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 |
showDetails(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This action changes the value of the hide field in the user interface so that when the page is rendered, the UI knows to show
all of the labels for each of the accounting line values.
|
org.apache.struts.action.ActionForward |
toggleTab(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
|
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.
|
org.apache.struts.action.ActionForward |
uploadTargetLines(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 TargetAccountingLines for a given transactional document.
|
correct, isDocumentLockedcopy, populateAuthorizationFieldsacknowledge, attemptLockRelease, buildAuthorizationException, cancel, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, complete, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, docHandler, doProcessingAfterPost, downloadBOAttachment, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getGroupService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hasPendingAdhocForCompletion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, insertBONote, isFormRepresentingLockObject, performRouteReport, populateAdHocActionRequestCodes, promptBeforeValidation, promptBeforeValidation, recall, refreshAdHocRoutingWorkgroupLookups, releaseLocks, reload, returnToSender, selectedAttachmentIndex, sendAdHocRequests, sendNoteWorkflowNotification, setupDocumentExit, setupPessimisticLockMessages, showAllTabs, streamToResponse, superUserApprove, superUserDisapprove, supervisorFunctions, takeSuperUserActionsaddMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, findMethodToCall, getApplicationBaseUrl, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getLineToEdit, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, isModuleLocked, performInquiry, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, updateTextArea, validateLookupInquiryFullParametercancelled, getMethod, getMethodName, getParameter, unspecifiedaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletprotected static org.apache.log4j.Logger LOG
protected static final Set UPDATE_EVENT_ACTIONS
public KualiAccountingDocumentActionBase()
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
execute in class FinancialSystemTransactionalDocumentActionBaseExceptionAction.execute(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.api.exception.WorkflowException
loadDocument in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseorg.kuali.rice.kew.api.exception.WorkflowExceptionKualiDocumentActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)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
refresh in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionKualiAction.refresh(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public org.apache.struts.action.ActionForward toggleTab(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
toggleTab in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionKualiAction.toggleTab(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)protected void processAccountingLineOverrides(KualiAccountingDocumentFormBase transForm)
transForm - protected void processAccountingLineOverrides(AccountingLine line)
line - protected void processAccountingLineOverrides(List accountingLines)
protected void processAccountingLineOverrides(AccountingDocument financialDocument, List accountingLines)
accountingLines - protected void processAccountingLines(AccountingDocument transDoc, KualiAccountingDocumentFormBase transForm, String lineSet)
transDoc - transForm - lineSet - public org.apache.struts.action.ActionForward deleteTargetLine(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 - Exceptionpublic 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
mapping - form - request - response - Exceptionprotected void deleteAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, int deleteIndex)
isSource - financialDocumentForm - deleteIndex - public org.apache.struts.action.ActionForward uploadTargetLines(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 - Exceptionpublic 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
mapping - form - request - response - FileNotFoundExceptionIOExceptionprotected void uploadAccountingLines(boolean isSource, org.apache.struts.action.ActionForm form) throws FileNotFoundException, IOException
isSource - form - FileNotFoundExceptionIOExceptionprotected void checkUploadFile(org.apache.struts.upload.FormFile file)
public org.apache.struts.action.ActionForward insertTargetLine(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 - Exceptionpublic 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
mapping - form - request - response - Exceptionprotected void insertAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, AccountingLine line)
isSource - financialDocumentForm - line - protected List deepCopyAccountingLinesList(List originals)
public org.apache.struts.action.ActionForward showDetails(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 - Exceptionpublic org.apache.struts.action.ActionForward hideDetails(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 - Exceptionpublic org.apache.struts.action.ActionForward performBalanceInquiryForSourceLine(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 - Exceptionpublic org.apache.struts.action.ActionForward performBalanceInquiryForTargetLine(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 SourceAccountingLine getSourceAccountingLine(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
form - request - isSource - protected TargetAccountingLine getTargetAccountingLine(org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request)
protected org.apache.struts.action.ActionForward performBalanceInquiryForAccountingLine(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, AccountingLine line)
mapping - form - request - line - protected String getObjectTypeCodeFromLine(AccountingLine line)
line - the line to get the object type code frompublic 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
save in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionpublic org.apache.struts.action.ActionForward approve(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
approve in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionpublic org.apache.struts.action.ActionForward route(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
route in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionpublic org.apache.struts.action.ActionForward blanketApprove(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
blanketApprove in class org.kuali.rice.kns.web.struts.action.KualiDocumentActionBaseExceptionprotected boolean checkSalesTax(AccountingDocument document, AccountingLine line, boolean source, boolean newLine, int index)
document - line - protected boolean isSalesTaxRequired(AccountingDocument financialDocument, AccountingLine accountingLine)
accountingLine - protected boolean isValidSalesTaxEntered(AccountingLine accountingLine, boolean source, boolean newLine, int index)
accountingLine - protected void removeSalesTax(AccountingLine accountingLine)
accountingLine - protected void handleSalesTaxRequired(AccountingDocument transDoc, AccountingLine formLine, boolean source, boolean newLine, int index)
transDoc - formLine - baseLine - protected boolean hasSalesTaxBeenEntered(AccountingLine accountingLine, boolean source, boolean newLine, int index)
protected void handleSalesTaxRequiredAllLines(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase, List<AccountingLine> baselineAcctingLines)
kualiDocumentFormBase - baselineSourceLines - protected boolean checkSalesTaxRequiredAllLines(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase, List<AccountingLine> baselineAcctingLines)
protected void refreshSalesTaxInfo(org.apache.struts.action.ActionForm form)
form - protected void populateSalesTax(AccountingLine line)
line - public org.apache.struts.action.ActionForward performLookup(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
performLookup in class org.kuali.rice.kns.web.struts.action.KualiActionExceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.