Java Doc for SubObjCdGlobalRule.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » chart » rules » 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.module.chart.rules 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.module.chart.rules.GlobalDocumentRuleBase
   org.kuali.module.chart.rules.SubObjCdGlobalRule

SubObjCdGlobalRule
public class SubObjCdGlobalRule extends GlobalDocumentRuleBase (Code)
This class implements the business rules specific to the SubObjCdGlobal Maintenance Document.




Method Summary
public  booleancheckAccountDetails(List<AccountGlobalDetail> details)
    
public  booleancheckAccountDetails(AccountGlobalDetail dtl)
    
protected  booleancheckChartAllLines(SubObjCdGlobal socChangeDocument)
    
protected  booleancheckChartOnAccountDetails(SubObjCdGlobal socChangeDocument, AccountGlobalDetail acctDetail, int lineNum, boolean add)
    
protected  booleancheckChartOnSubObjCodeDetails(SubObjCdGlobal socChangeDocument, SubObjCdGlobalDetail socChangeDetail, int lineNum, boolean add)
    
protected  booleancheckFiscalYear(SubObjCdGlobal socChangeDocument, SubObjCdGlobalDetail socChangeDetail, int lineNum, boolean add)
    
protected  booleancheckFiscalYearAllLines(SubObjCdGlobal socChangeDocument)
    
protected  booleancheckForAccountGlobalDetails(List<AccountGlobalDetail> acctChangeDetails)
    
protected  booleancheckForSubObjCdGlobalDetails(List<SubObjCdGlobalDetail> subObjCdGlobalDetails)
    
protected  booleancheckSimpleRulesAllLines()
     This method checks the simple rules for all lines at once and gets called on save, submit, etc.
public  booleancheckSubObjectCodeDetails(SubObjCdGlobalDetail dtl)
    
public  booleanprocessCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)
    
protected  booleanprocessCustomApproveDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomRouteDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomSaveDocumentBusinessRules(MaintenanceDocument document)
    
public  voidsetupConvenienceObjects()
     This method sets the convenience objects like subObjCdGlobal and all the detail objects, so you have short and easy handles to the new and old objects contained in the maintenance document.



Method Detail
checkAccountDetails
public boolean checkAccountDetails(List<AccountGlobalDetail> details)(Code)
This calls the SubObjCdGlobalRule.checkAccountDetails(AccountGlobalDetail) on each AccountGlobalDetail as well as calling SubObjCdGlobalRule.checkOnlyOneChartErrorWrapper(List) to ensure there is just one chart
Parameters:
  details - false if any of the detail objects fail they're sub-rule



checkAccountDetails
public boolean checkAccountDetails(AccountGlobalDetail dtl)(Code)
This checks that if the account and chart are entered that the account associated with the AccountGlobalDetail is valid
Parameters:
  dtl - - the AccountGlobalDetail we are dealing with false if any of the fields are found to be invalid



checkChartAllLines
protected boolean checkChartAllLines(SubObjCdGlobal socChangeDocument)(Code)
This checks that the chart is the same on the document, SubObjCdGlobalDetails and AccountGlobalDetails
Parameters:
  socChangeDocument - false if the chart is missing or not the same on the doc, or the detail lists



checkChartOnAccountDetails
protected boolean checkChartOnAccountDetails(SubObjCdGlobal socChangeDocument, AccountGlobalDetail acctDetail, int lineNum, boolean add)(Code)
This checks that the chart of accounts on the AccountGlobalDetail is not empty and matches the document's chart matches the detail's chart
Parameters:
  socChangeDocument -
Parameters:
  acctDetail -
Parameters:
  lineNum -
Parameters:
  add - false if the chart is missing or is not the same between the doc and the detail



checkChartOnSubObjCodeDetails
protected boolean checkChartOnSubObjCodeDetails(SubObjCdGlobal socChangeDocument, SubObjCdGlobalDetail socChangeDetail, int lineNum, boolean add)(Code)
This checks to make sure that the chart of accounts on the SubObjCdGlobalDetail is not empty and the document's chart matches the detail's chart
Parameters:
  socChangeDocument -
Parameters:
  socChangeDetail -
Parameters:
  lineNum -
Parameters:
  add - false if the chart is missing or is not the same between the doc and the detail



checkFiscalYear
protected boolean checkFiscalYear(SubObjCdGlobal socChangeDocument, SubObjCdGlobalDetail socChangeDetail, int lineNum, boolean add)(Code)
This checks to make sure that the fiscal year on the SubObjCdGlobalDetail is not empty and the document's fiscal year matches the detail's fiscal year
Parameters:
  socChangeDocument - false if the fiscal year is missing or is not the same between the doc and the detail



checkFiscalYearAllLines
protected boolean checkFiscalYearAllLines(SubObjCdGlobal socChangeDocument)(Code)
This checks that the fiscal year is the same on the doc and all SubObjCdGlobalDetails
Parameters:
  socChangeDocument - false if the fiscal year is not the same on the doc and any of the SubObjCdGlobalDetails



checkForAccountGlobalDetails
protected boolean checkForAccountGlobalDetails(List<AccountGlobalDetail> acctChangeDetails)(Code)
This checks that the AccountGlobalDetail list isn't empty or null
Parameters:
  acctChangeDetails - false if the list is null or empty



checkForSubObjCdGlobalDetails
protected boolean checkForSubObjCdGlobalDetails(List<SubObjCdGlobalDetail> subObjCdGlobalDetails)(Code)
This checks that the SubObjCdGlobalDetail list isn't empty or null
Parameters:
  subObjCdGlobalDetails - false if the list is null or empty



checkSimpleRulesAllLines
protected boolean checkSimpleRulesAllLines()(Code)
This method checks the simple rules for all lines at once and gets called on save, submit, etc. but not on add



checkSubObjectCodeDetails
public boolean checkSubObjectCodeDetails(SubObjCdGlobalDetail dtl)(Code)
This checks that if the object code, chart code, and fiscal year are entered it is a valid Object Code, chart, and Fiscal Year associated with this SubObjectCode
Parameters:
  dtl - - the SubObjCdGlobalDetail we are checking false if any of the fields are found to be invalid



processCustomAddCollectionLineBusinessRules
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)
Before adding either a AccountGlobalDetail or SubObjCdGlobalDetail this checks to make sure that the account and chart are filled in, in the case of SubObjCdGlobalDetail it also checks that the object code and fiscal year are filled in If any of these fail, it fails to add the new line to the collection
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.core.document.MaintenanceDocumentjava.lang.Stringorg.kuali.core.bo.PersistableBusinessObject)



processCustomApproveDocumentBusinessRules
protected boolean processCustomApproveDocumentBusinessRules(MaintenanceDocument document)(Code)
This performs rules checks on document approve This rule fails on business rule failures
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomApproveDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



processCustomRouteDocumentBusinessRules
protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)
This performs rules checks on document route This rule fails on business rule failures
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



processCustomSaveDocumentBusinessRules
protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)
This performs rules checks on document save This rule does not fail on business rule failures
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomSaveDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



setupConvenienceObjects
public void setupConvenienceObjects()(Code)
This method sets the convenience objects like subObjCdGlobal and all the detail objects, so you have short and easy handles to the new and old objects contained in the maintenance document. It also calls the BusinessObjectBase.refresh(), which will attempt to load all sub-objects from the DB by their primary keys, if available. This also loops through each detail item (SubObjCdGlobalDetail and AccountGlobalDetail) are refreshed
Parameters:
  document - - the maintenanceDocument being evaluated



Methods inherited from org.kuali.module.chart.rules.GlobalDocumentRuleBase
protected CheckOnlyOneChartResult checkOnlyOneChart(List<AccountGlobalDetail> accountGlobalDetails)(Code)(Java Doc)
protected boolean checkOnlyOneChartAddLine(AccountGlobalDetail newAccountLine, List<AccountGlobalDetail> accountGlobalDetails)(Code)(Java Doc)
protected boolean checkOnlyOneChartAddLineErrorWrapper(AccountGlobalDetail newAccountLine, List<AccountGlobalDetail> accountGlobalDetails)(Code)(Java Doc)
protected boolean checkOnlyOneChartErrorWrapper(List<AccountGlobalDetail> accountGlobalDetails)(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.