Java Doc for KualiAccountingDocumentActionBase.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » kfs » web » struts » action » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.kfs.web.struts.action 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.core.web.struts.action.KualiTransactionalDocumentActionBase
   org.kuali.kfs.web.struts.action.KualiAccountingDocumentActionBase

All known Subclasses:   org.kuali.module.labor.web.struts.action.ExpenseTransferDocumentActionBase,  org.kuali.module.financial.web.struts.action.GeneralErrorCorrectionAction,  org.kuali.module.financial.web.struts.action.BudgetAdjustmentAction,  org.kuali.module.financial.web.struts.action.AdvanceDepositAction,  org.kuali.module.financial.web.struts.action.DisbursementVoucherAction,  org.kuali.module.financial.web.struts.action.ProcurementCardAction,  org.kuali.module.financial.web.struts.action.TransferOfFundsAction,  org.kuali.module.financial.web.struts.action.CreditCardReceiptAction,  org.kuali.module.financial.web.struts.action.IndirectCostAdjustmentAction,  org.kuali.module.financial.web.struts.action.InternalBillingAction,  org.kuali.module.financial.web.struts.action.NonCheckDisbursementAction,  org.kuali.module.financial.web.struts.action.CashReceiptAction,  org.kuali.module.financial.web.struts.action.DistributionOfIncomeAndExpenseAction,  org.kuali.module.financial.web.struts.action.PreEncumbranceAction,  org.kuali.module.purap.web.struts.action.PurchasingAccountsPayableActionBase,  org.kuali.module.financial.web.struts.action.VoucherAction,
KualiAccountingDocumentActionBase
public class KualiAccountingDocumentActionBase extends KualiTransactionalDocumentActionBase (Code)
This class handles UI actions for all shared methods of financial documents.


Field Summary
final protected static  SetUPDATE_EVENT_ACTIONS
    


Method Summary
protected  voidclearOverridesThatBecameUnneeded(AccountingLine formLine)
     Automatically clears any overrides that have become unneeded.
public  ActionForwardcopy(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
protected  voidcreateDocument(KualiDocumentFormBase kualiDocumentFormBase)
    
protected  voiddeleteAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, int deleteIndex)
     Deletes the source or target accountingLine with the given index from the given form.
public  ActionForwarddeleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This method will remove a SourceAccountingLine from a FinancialDocument.
public  ActionForwarddeleteTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This method will remove a TargetAccountingLine from a FinancialDocument.
public  ActionForwardexecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
protected  SourceAccountingLinegetSourceAccountingLine(ActionForm form, HttpServletRequest request)
     This method is a helper method that will return a source accounting line.
public  ActionForwardhideDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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  voidinsertAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, AccountingLine line)
     Adds the given accountingLine to the appropriate form-related datastructures.
public  ActionForwardinsertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
public  ActionForwardinsertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This method will add a TargetAccountingLine to a FinancialDocument.
protected  booleanisSalesTaxRequired(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  voidloadDocument(KualiDocumentFormBase kualiDocumentFormBase)
    
protected  ActionForwardperformBalanceInquiryForAccountingLine(ActionMapping mapping, ActionForm form, 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.
public  ActionForwardperformBalanceInquiryForSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
public  ActionForwardperformBalanceInquiryForTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
protected  voidprocessAccountingLineOverrides(KualiAccountingDocumentFormBase transForm)
    
protected  voidprocessAccountingLineOverrides(AccountingLine line)
    
protected  voidprocessAccountingLineOverrides(List accountingLines)
    
public  ActionForwardrefresh(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
protected  booleanrevertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine newerLine)
     Overwrites field values in the given brokenLine with those in the given originalLine, if the two accountingLines differ.
public  ActionForwardrevertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This method will revert a SourceAccountingLine by overwriting its current values with the values in the corresponding baseline accountingLine.
public  ActionForwardrevertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This method will revert a TargetAccountingLine by overwriting its current values with the values in the corresponding baseline accountingLine.
public  ActionForwardroute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
public  ActionForwardsave(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
public  ActionForwardshowDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
public  ActionForwardtoggleTab(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    
protected  voiduploadAccountingLines(boolean isSource, ActionForm form)
     This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the document object.
public  ActionForwarduploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document.
public  ActionForwarduploadTargetLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This action executes a call to upload CSV accounting line values as TargetAccountingLines for a given transactional document.

Field Detail
UPDATE_EVENT_ACTIONS
final protected static Set UPDATE_EVENT_ACTIONS(Code)





Method Detail
clearOverridesThatBecameUnneeded
protected void clearOverridesThatBecameUnneeded(AccountingLine formLine)(Code)
Automatically clears any overrides that have become unneeded. This is for accounting lines that were changed right before final actions like route. Normally the unneeded overrides are cleared in accountingLineOverrideField.tag instead, but that requires another form submit. This method shouldn't be called on lines that haven't changed, to avoid automatically changing read-only lines. This cannot be done in the Rule because Rules cannot change the AccountingLines; they only get a deepCopy.
Parameters:
  formLine -



copy
public ActionForward copy(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Method that will take the current document, copy it, replace all references to doc header id with a new one, clear pending entries, clear notes, and reset version numbers
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response -
throws:
  Exception -



createDocument
protected void createDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)
All document-creation gets routed through here
See Also:   org.kuali.core.web.struts.action.KualiDocumentActionBase.createDocument(org.kuali.core.web.struts.form.KualiDocumentFormBase)



deleteAccountingLine
protected void deleteAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, int deleteIndex)(Code)
Deletes the source or target accountingLine with the given index from the given form. Assumes that the rule- and form- validation have already occurred.
Parameters:
  isSource -
Parameters:
  financialDocumentForm -
Parameters:
  deleteIndex -



deleteSourceLine
public ActionForward deleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This method will remove a SourceAccountingLine from a FinancialDocument. This assumes that the user presses the delete button for a specific accounting line on the document and that the document is represented by a FinancialDocumentFormBase.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



deleteTargetLine
public ActionForward deleteTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This method will remove a TargetAccountingLine from a FinancialDocument. This assumes that the user presses the delete button for a specific accounting line on the document and that the document is represented by a FinancialDocumentFormBase.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



execute
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Adds check for accountingLine updates, generates and dispatches any events caused by such updates
See Also:   org.apache.struts.action.Action.execute(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



getSourceAccountingLine
protected SourceAccountingLine getSourceAccountingLine(ActionForm form, HttpServletRequest request)(Code)
This method is a helper method that will return a source accounting line. The reason we're making it protected in here is so that we can override this method in some of the modules. PurchasingActionBase is one of the subclasses that will be overriding this, because in PurchasingActionBase, we'll need to get the source accounting line using both an item index and an account index.
Parameters:
  form -
Parameters:
  request -
Parameters:
  isSource -



hideDetails
public ActionForward hideDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



insertAccountingLine
protected void insertAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, AccountingLine line)(Code)
Adds the given accountingLine to the appropriate form-related datastructures.
Parameters:
  isSource -
Parameters:
  financialDocumentForm -
Parameters:
  line -



insertSourceLine
public ActionForward insertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This action executes an insert of a SourceAccountingLine into a document only after validating the accounting line and checking any appropriate business rules.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



insertTargetLine
public ActionForward insertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This method will add a TargetAccountingLine to a FinancialDocument. This assumes that the user presses the add button for a specific accounting line on the document and that the document is represented by a FinancialDocumentFormBase. It first validates the line for data integrity and then checks appropriate business rules.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



isSalesTaxRequired
protected boolean isSalesTaxRequired(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)
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. Note - this is hackish as we shouldn't have to call rules directly from the action class But we need to in this instance because we are copying the lines before calling rules and need a way to modify them before they go on
Parameters:
  accountingLine - true if sales tax check is needed, false otherwise



loadDocument
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)
All document-load operations get routed through here
See Also:   org.kuali.core.web.struts.action.KualiDocumentActionBase.loadDocument(org.kuali.core.web.struts.form.KualiDocumentFormBase)



performBalanceInquiryForAccountingLine
protected ActionForward performBalanceInquiryForAccountingLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, AccountingLine line)(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  line - ActionForward



performBalanceInquiryForSourceLine
public ActionForward performBalanceInquiryForSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



performBalanceInquiryForTargetLine
public ActionForward performBalanceInquiryForTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



processAccountingLineOverrides
protected void processAccountingLineOverrides(KualiAccountingDocumentFormBase transForm)(Code)

Parameters:
  transForm -



processAccountingLineOverrides
protected void processAccountingLineOverrides(AccountingLine line)(Code)

Parameters:
  line -



processAccountingLineOverrides
protected void processAccountingLineOverrides(List accountingLines)(Code)

Parameters:
  accountingLines -



refresh
public ActionForward refresh(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Needed to override this to keep from losing Sales Tax information
See Also:   org.kuali.core.web.struts.action.KualiAction.refresh(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



revertAccountingLine
protected boolean revertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine newerLine)(Code)
Overwrites field values in the given brokenLine with those in the given originalLine, if the two accountingLines differ.
Parameters:
  transForm -
Parameters:
  revertIndex -
Parameters:
  originalLine -
Parameters:
  newerLine - true if and only if the brokenLine was actually changed



revertSourceLine
public ActionForward revertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This method will revert a SourceAccountingLine by overwriting its current values with the values in the corresponding baseline accountingLine. This assumes that the user presses the revert button for a specific accounting line on the document and that the document is represented by a FinancialDocumentFormBase.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



revertTargetLine
public ActionForward revertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This method will revert a TargetAccountingLine by overwriting its current values with the values in the corresponding baseline accountingLine. This assumes that the user presses the revert button for a specific accounting line on the document and that the document is represented by a FinancialDocumentFormBase.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



route
public ActionForward route(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)



save
public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)



showDetails
public ActionForward showDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



toggleTab
public ActionForward toggleTab(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Needed to override this to keep from losing Sales Tax information
See Also:   org.kuali.core.web.struts.action.KualiAction.toggleTab(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



uploadAccountingLines
protected void uploadAccountingLines(boolean isSource, ActionForm form) throws FileNotFoundException, IOException(Code)
This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the document object. This method handles retrieving the actual upload file as an input stream into the document.
Parameters:
  isSource -
Parameters:
  form -
throws:
  FileNotFoundException -
throws:
  IOException -



uploadSourceLines
public ActionForward uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException(Code)
This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document. The "uploadAccountingLines()" method handles the multi-part request.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  FileNotFoundException -
throws:
  IOException -



uploadTargetLines
public ActionForward uploadTargetLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This action executes a call to upload CSV accounting line values as TargetAccountingLines for a given transactional document. The "uploadAccountingLines()" method handles the multi-part request.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



Methods inherited from org.kuali.core.web.struts.action.KualiTransactionalDocumentActionBase
public ActionForward copy(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward correct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.