Java Doc for DelegateGlobalRule.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.DelegateGlobalRule

DelegateGlobalRule
public class DelegateGlobalRule extends GlobalDocumentRuleBase (Code)
This class executes specific rules for the DelegateGlobalMaintenanceDocument


Field Summary
protected static  org.apache.log4j.LoggerLOG
    

Constructor Summary
public  DelegateGlobalRule()
    

Method Summary
public  booleancheckAccountDetails(List<AccountGlobalDetail> details)
    
public  booleancheckAccountDetails(AccountGlobalDetail dtl)
    
protected  booleancheckDelegateForNullToAmount(KualiDecimal fromAmount, KualiDecimal toAmount, int lineNum, boolean add)
    
protected  booleancheckDelegateFromAmtGreaterThanEqualZero(KualiDecimal fromAmount, int lineNum, boolean add)
    
protected  booleancheckDelegateToAmtGreaterThanFromAmt(KualiDecimal fromAmount, KualiDecimal toAmount, int lineNum, boolean add)
    
protected  booleancheckDelegateUserRules(DelegateGlobalDetail delegateGlobal, int lineNum, boolean add)
    
protected  booleancheckForPrimaryDelegateAllLines()
    
protected  IntegercheckPrimaryRouteOnlyAllowOneAllDocType(DelegateGlobalDetail delegateGlobalToTest, List<DelegateGlobalDetail> delegateGlobals, Integer testLineNum)
     This method validates the rule that says there can be only one PrimaryRoute delegate on a Global Delegate document if the docType is ALL.
protected  IntegercheckPrimaryRoutePerDocType(DelegateGlobalDetail delegateGlobalToTest, List<DelegateGlobalDetail> delegateGlobals, Integer testLineNum)
     This method validates the rule that says there can be only one PrimaryRoute delegate for each given docType.
protected  booleancheckPrimaryRouteRules(List<DelegateGlobalDetail> delegateGlobals, DelegateGlobalDetail delegateGlobalToTest, Integer lineNum, boolean add)
    
protected  booleancheckSimpleRulesAllLines()
     This method checks the simple rules for all lines at once and gets called on save, submit, etc.
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 newAccount and oldAccount, so you have short and easy handles to the new and old objects contained in the maintenance document.

Field Detail
LOG
protected static org.apache.log4j.Logger LOG(Code)




Constructor Detail
DelegateGlobalRule
public DelegateGlobalRule()(Code)




Method Detail
checkAccountDetails
public boolean checkAccountDetails(List<AccountGlobalDetail> details)(Code)
This checks to see if there are any accounts in the details collection if there are then it calls DelegateGlobalRule.checkAccountDetails(AccountGlobalDetail)
Parameters:
  details - - collection of AccountGlobalDetails false if there are no objects in the collection or any one of the AccountGlobalDetail fail



checkAccountDetails
public boolean checkAccountDetails(AccountGlobalDetail dtl)(Code)
This checks to make sure that each AccountGlobalDetail has a valid Account
Parameters:
  dtl - - the AccountGlobalDetail false if it does not have a valid Account



checkDelegateForNullToAmount
protected boolean checkDelegateForNullToAmount(KualiDecimal fromAmount, KualiDecimal toAmount, int lineNum, boolean add)(Code)
This method checks to see if the from amount is not null and the to amount is null
Parameters:
  fromAmount -
Parameters:
  toAmount -
Parameters:
  lineNum - false if from amount valid and to amount are null



checkDelegateFromAmtGreaterThanEqualZero
protected boolean checkDelegateFromAmtGreaterThanEqualZero(KualiDecimal fromAmount, int lineNum, boolean add)(Code)
This method checks to see if the from amount is greater than zero
Parameters:
  fromAmount -
Parameters:
  lineNum - false if from amount less than zero



checkDelegateToAmtGreaterThanFromAmt
protected boolean checkDelegateToAmtGreaterThanFromAmt(KualiDecimal fromAmount, KualiDecimal toAmount, int lineNum, boolean add)(Code)
This method checks to see if the to Amount is greater than the from amount
Parameters:
  fromAmount -
Parameters:
  toAmount -
Parameters:
  lineNum - false if to amount less than from amount



checkDelegateUserRules
protected boolean checkDelegateUserRules(DelegateGlobalDetail delegateGlobal, int lineNum, boolean add)(Code)
This checks that the delegate for this Account exists and is valid (active and a professional)
Parameters:
  delegateGlobal -
Parameters:
  lineNum -
Parameters:
  add - false if the delegate for the Account doesn't exist or isn't valid



checkForPrimaryDelegateAllLines
protected boolean checkForPrimaryDelegateAllLines()(Code)
This method will check through each delegate referenced in the DelegateGlobal to ensure that there is one and only primary for each account and doctype false if there is more than one primary delegate



checkPrimaryRouteOnlyAllowOneAllDocType
protected Integer checkPrimaryRouteOnlyAllowOneAllDocType(DelegateGlobalDetail delegateGlobalToTest, List<DelegateGlobalDetail> delegateGlobals, Integer testLineNum)(Code)
This method validates the rule that says there can be only one PrimaryRoute delegate on a Global Delegate document if the docType is ALL. It checks the delegateGlobalToTest against the list, to determine whether adding this new delegateGlobalToTest would violate any PrimaryRoute business rule violations. If any of the incoming variables is null or empty, the method will do nothing, and return Null. It will only process the business rules if there is sufficient data to do so.
Parameters:
  delegateGlobalToTest - A delegateGlobal line that you want to test agains the list.
Parameters:
  delegateGlobals - A List of delegateGlobal items that is being tested against. Null if the business rule passes, or an Integer value greater than zero, representing the line that the new line isconflicting with



checkPrimaryRoutePerDocType
protected Integer checkPrimaryRoutePerDocType(DelegateGlobalDetail delegateGlobalToTest, List<DelegateGlobalDetail> delegateGlobals, Integer testLineNum)(Code)
This method validates the rule that says there can be only one PrimaryRoute delegate for each given docType. It checks the delegateGlobalToTest against the list, to determine whether adding this new delegateGlobalToTest would violate any PrimaryRoute business rule violations. If any of the incoming variables is null or empty, the method will do nothing, and return Null. It will only process the business rules if there is sufficient data to do so.
Parameters:
  delegateGlobalToTest - A delegateGlobal line that you want to test against the list.
Parameters:
  delegateGlobals - A List of delegateGlobal items that is being tested against. Null if the business rule passes, or an Integer value greater than zero, representing the line that the new line isconflicting with



checkPrimaryRouteRules
protected boolean checkPrimaryRouteRules(List<DelegateGlobalDetail> delegateGlobals, DelegateGlobalDetail delegateGlobalToTest, Integer lineNum, boolean add)(Code)
This checks that the primary routing for delegates is correct, specifically that - there is not already a primary route delegate setup for this Account
Parameters:
  delegateGlobals -
Parameters:
  delegateGlobalToTest -
Parameters:
  lineNum -
Parameters:
  add -



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 Specifically it calls the following:



processCustomAddCollectionLineBusinessRules
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)
This checks that when a new line is added (either AccountGlobalDetail or DelegateGlobalDetail ) that the appropriate rules are run on the new lines being added on AccountGlobalDetail : - make sure that the account number and chart are entered on DelegateGlobalDetail
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 checks some basic rules for document approval Specifically it calls the following: fails if any rules fail
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomApproveDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



processCustomRouteDocumentBusinessRules
protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)
This checks some basic rules for document routing Specifically it calls the following: fails if any rules fail
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



processCustomSaveDocumentBusinessRules
protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)
This checks some basic rules for document saving Specifically it calls the following: fails if any rules fail
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 newAccount and oldAccount, 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.



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.