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

AccountGlobalRule
public class AccountGlobalRule extends GlobalDocumentRuleBase (Code)
This class represents the business rules for the maintenance of AccountGlobal business objects



Constructor Summary
public  AccountGlobalRule()
    

Method Summary
protected  booleanareTwoUsersTheSame(UniversalUser user1, UniversalUser user2)
    
public  booleancheckAccountDetails(MaintenanceDocument document, List<AccountGlobalDetail> details)
    
public  booleancheckAccountDetails(AccountGlobalDetail dtl)
    
protected  booleancheckAccountUsers(AccountGlobalDetail detail, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor, int index)
    
protected  booleancheckAllAccountUsers(AccountGlobal doc, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor)
    
protected  booleancheckCgIncomeStreamRequired(AccountGlobal accountGlobals)
    
protected  booleancheckContinuationAccount(MaintenanceDocument document, Timestamp newExpDate)
     This method validates that a continuation account is required and that the values provided exist
Parameters:
  document - An instance of the maintenance document being validated.
Parameters:
  newExpDate - The expiration date assigned to the account being validated for submission.
protected  booleancheckContractsAndGrants()
    
protected  booleancheckEmptyValues()
    
protected  booleancheckExpirationDate(MaintenanceDocument maintenanceDocument)
    
protected  booleancheckExpirationDate(MaintenanceDocument maintenanceDocument, AccountGlobalDetail detail)
    
protected  booleancheckFiscalOfficerIsValidKualiUser(String fiscalOfficerUserId)
    
protected  booleancheckGeneralRules(MaintenanceDocument maintenanceDocument)
    
protected  booleancheckOrganizationValidity(AccountGlobal acctGlobal)
     Validate that the object code on the form (if entered) is valid for all charts used in the detail sections.
protected  booleancheckUserStatusAndType(String propertyName, UniversalUser user)
     This method checks to see if the user passed in is of the type requested.
protected  booleanisContinuationAccountExpired(AccountGlobal accountGlobals)
     This method tests whether the continuation account entered (if any) has expired or not.
protected  booleanisSupervisorSameAsFiscalOfficer(AccountGlobal accountGlobals)
    
protected  booleanisSupervisorSameAsManager(AccountGlobal accountGlobals)
    
protected  booleanisUpdatedExpirationDateInvalid(Account oldAccount, AccountGlobal newAccountGlobal)
    
public  booleanprocessCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)
    
protected  booleanprocessCustomRouteDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomSaveDocumentBusinessRules(MaintenanceDocument document)
    
public  voidsetupConvenienceObjects()
     This method sets the convenience objects like newAccountGlobal and oldAccount, so you have short and easy handles to the new and old objects contained in the maintenance document.


Constructor Detail
AccountGlobalRule
public AccountGlobalRule()(Code)




Method Detail
areTwoUsersTheSame
protected boolean areTwoUsersTheSame(UniversalUser user1, UniversalUser user2)(Code)
This method checks to see if two users are the same BusinessObject using their identifiers
Parameters:
  user1 -
Parameters:
  user2 - true if these two users are the same



checkAccountDetails
public boolean checkAccountDetails(MaintenanceDocument document, List<AccountGlobalDetail> details)(Code)
This method loops through the list of AccountGlobalDetail s and passes them off to checkAccountDetails for further rule analysis One rule it does check is checkOnlyOneChartErrorWrapper
Parameters:
  document -
Parameters:
  details - true if the collection of AccountGlobalDetails passes the sub-rules



checkAccountDetails
public boolean checkAccountDetails(AccountGlobalDetail dtl)(Code)
This method ensures that each AccountGlobalDetail is valid and has a valid account number
Parameters:
  dtl - true if the detail object contains a valid account



checkAccountUsers
protected boolean checkAccountUsers(AccountGlobalDetail detail, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor, int index)(Code)
This method checks that the new users (fiscal officer, supervisor, manager) are not the same individual for the Account being changed (contained in the AccountGlobalDetail )
Parameters:
  detail - - where the Account information is stored
Parameters:
  newFiscalOfficer -
Parameters:
  newManager -
Parameters:
  newSupervisor -
Parameters:
  index - - for storing the error line true if the new users pass this sub-rule



checkAllAccountUsers
protected boolean checkAllAccountUsers(AccountGlobal doc, UniversalUser newFiscalOfficer, UniversalUser newManager, UniversalUser newSupervisor)(Code)
This method checks to make sure that if the users are filled out (fiscal officer, supervisor, manager) that they are not the same individual Only need to check this if these are new users that override existing users on the Account object
Parameters:
  doc -
Parameters:
  newFiscalOfficer -
Parameters:
  newManager -
Parameters:
  newSupervisor - true if the users are either not changed or pass the sub-rules



checkCgIncomeStreamRequired
protected boolean checkCgIncomeStreamRequired(AccountGlobal accountGlobals)(Code)
This method checks to see if the contracts and grants income stream account is required
Parameters:
  accountGlobals - false if it is required (and not entered) or invalid/inactive



checkContinuationAccount
protected boolean checkContinuationAccount(MaintenanceDocument document, Timestamp newExpDate)(Code)
This method validates that a continuation account is required and that the values provided exist
Parameters:
  document - An instance of the maintenance document being validated.
Parameters:
  newExpDate - The expiration date assigned to the account being validated for submission. True if the continuation account values are valid for the associated account, false otherwise.



checkContractsAndGrants
protected boolean checkContractsAndGrants()(Code)
This method checks to see if any Contracts and Grants business rules were violated false on rules violation



checkEmptyValues
protected boolean checkEmptyValues()(Code)
This method checks the basic rules for empty reference key values on a continuation account and an income stream account true if no empty values or partially filled out reference keys



checkExpirationDate
protected boolean checkExpirationDate(MaintenanceDocument maintenanceDocument)(Code)
This method checks to see if any expiration date field rules were violated Loops through each detail object and calls AccountGlobalRule.checkExpirationDate(MaintenanceDocumentAccountGlobalDetail)
Parameters:
  maintenanceDocument - false on rules violation



checkExpirationDate
protected boolean checkExpirationDate(MaintenanceDocument maintenanceDocument, AccountGlobalDetail detail)(Code)
This method checks to see if any expiration date field rules were violated in relation to the given detail record
Parameters:
  maintenanceDocument -
Parameters:
  detail - - the account detail we are investigating false on rules violation



checkFiscalOfficerIsValidKualiUser
protected boolean checkFiscalOfficerIsValidKualiUser(String fiscalOfficerUserId)(Code)
This method insures the fiscal officer is a valid Kuali User
Parameters:
  fiscalOfficerUserId - true if fiscal officer is a valid KualiUser



checkGeneralRules
protected boolean checkGeneralRules(MaintenanceDocument maintenanceDocument)(Code)
This method checks some of the general business rules associated with this document Such as: valid user for fiscal officer, supervisor or account manager (and not the same individual) are they trying to use an expired continuation account
Parameters:
  maintenanceDocument - false on rules violation



checkOrganizationValidity
protected boolean checkOrganizationValidity(AccountGlobal acctGlobal)(Code)
Validate that the object code on the form (if entered) is valid for all charts used in the detail sections.
Parameters:
  acctGlobal -



checkUserStatusAndType
protected boolean checkUserStatusAndType(String propertyName, UniversalUser user)(Code)
This method checks to see if the user passed in is of the type requested. If so, it returns true. If not, it returns false, and adds an error to the GlobalErrors.
Parameters:
  propertyName -
Parameters:
  user - - UniversalUser to be tested true if user is of the requested employee type, false if not, true if the user object is null



isContinuationAccountExpired
protected boolean isContinuationAccountExpired(AccountGlobal accountGlobals)(Code)
This method tests whether the continuation account entered (if any) has expired or not.
Parameters:
  accountGlobals - true if the continuation account has expired



isSupervisorSameAsFiscalOfficer
protected boolean isSupervisorSameAsFiscalOfficer(AccountGlobal accountGlobals)(Code)
This method is a helper method for checking if the supervisor user is the same as the fiscal officer Calls AccountGlobalRule.areTwoUsersTheSame(UniversalUserUniversalUser)
Parameters:
  accountGlobals - true if the two users are the same



isSupervisorSameAsManager
protected boolean isSupervisorSameAsManager(AccountGlobal accountGlobals)(Code)
This method is a helper method for checking if the supervisor user is the same as the manager Calls AccountGlobalRule.areTwoUsersTheSame(UniversalUserUniversalUser)
Parameters:
  accountGlobals - true if the two users are the same



isUpdatedExpirationDateInvalid
protected boolean isUpdatedExpirationDateInvalid(Account oldAccount, AccountGlobal newAccountGlobal)(Code)
This method checks to see if the updated expiration is not a valid one Only gets checked for specific SubFundGroup s
Parameters:
  oldAccount -
Parameters:
  newAccountGlobal - true if date has changed and is invalid



processCustomAddCollectionLineBusinessRules
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)
This method calls checkAccountDetails checkExpirationDate checkOnlyOneChartAddLineErrorWrapper whenever a new AccountGlobalDetail is added to this global
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomAddCollectionLineBusinessRules(org.kuali.core.document.MaintenanceDocumentjava.lang.Stringorg.kuali.core.bo.PersistableBusinessObject)



processCustomRouteDocumentBusinessRules
protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)
This method checks the following rules: checkEmptyValues checkGeneralRules checkContractsAndGrants checkExpirationDate checkOnlyOneChartErrorWrapper checkFiscalOfficerIsValidKualiUser but does fail if any of these rule checks fail
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.processCustomRouteDocumentBusinessRules(org.kuali.core.document.MaintenanceDocument)



processCustomSaveDocumentBusinessRules
protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)
This method checks the following rules: checkEmptyValues checkGeneralRules checkContractsAndGrants checkExpirationDate checkOnlyOneChartErrorWrapper checkFiscalOfficerIsValidKualiUser but does not fail if any of them fail (this only happens on routing)
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 newAccountGlobal 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.