Java Doc for SubAccountRule.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.core.maintenance.rules.MaintenanceDocumentRuleBase
   org.kuali.module.chart.rules.SubAccountRule

SubAccountRule
public class SubAccountRule extends MaintenanceDocumentRuleBase (Code)
This class implements the business rules specific to the SubAccount Maintenance Document.


Field Summary
final public static  StringCG_A21_TYPE_COST_SHARING
    
final public static  StringCG_A21_TYPE_ICR
    
protected static  org.apache.log4j.LoggerLOG
    

Constructor Summary
public  SubAccountRule()
    

Method Summary
protected  booleancheckCgCostSharingIsEmpty()
     This method tests if all fields in the Cost Sharing section are empty.
protected  booleancheckCgCostSharingRules()
    
protected  booleancheckCgFieldsNotAuthorized(MaintenanceDocument document)
     This method checks to see if the user is authorized for the CG fields, and if not, whether any CG fields have been entered or modified.
protected  booleancheckCgIcrIsEmpty()
     This method tests if all fields in the ICR section are empty.
protected  booleancheckCgIcrRules()
    
protected  booleancheckCgRules(MaintenanceDocument document)
    
protected  booleancheckForPartiallyEnteredReportingFields()
    
protected  booleandisallowAnyValues(String value, String fieldName)
     This method tests the value entered, and if there is anything there it logs a new error, and returns false.
protected  booleandisallowChangedValues(String oldValue, String newValue, String fieldName)
     This method tests the two values entered, and if there is any change between the two, it logs an error, and returns false.
protected  booleangetCgAuthorized()
    
protected  booleanisCgAuthorized(UniversalUser user)
     This method tests whether the specified user is part of the group that grants authorization to the CG fields.
protected  booleanisFieldValueChanged(String oldValue, String newValue)
    
protected  booleanprocessCustomApproveDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomRouteDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomSaveDocumentBusinessRules(MaintenanceDocument document)
    
protected  voidsetCgAuthorized(boolean cgAuthorized)
    
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
CG_A21_TYPE_COST_SHARING
final public static String CG_A21_TYPE_COST_SHARING(Code)



CG_A21_TYPE_ICR
final public static String CG_A21_TYPE_ICR(Code)



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




Constructor Detail
SubAccountRule
public SubAccountRule()(Code)
Constructs a SubAccountRule and pseudo-inject some services




Method Detail
checkCgCostSharingIsEmpty
protected boolean checkCgCostSharingIsEmpty()(Code)
This method tests if all fields in the Cost Sharing section are empty. true if the cost sharing values passed in are empty, otherwise false.



checkCgCostSharingRules
protected boolean checkCgCostSharingRules()(Code)
This checks that if the cost share information is filled out that it is valid and exists, or if fields are missing (such as the chart of accounts code and account number) an error is recorded true if all cost share fields filled out correctly, false if the chart of accounts code and account number forcost share are missing



checkCgFieldsNotAuthorized
protected boolean checkCgFieldsNotAuthorized(MaintenanceDocument document)(Code)
This method checks to see if the user is authorized for the CG fields, and if not, whether any CG fields have been entered or modified. If unauthorized changes have been made, then fail and log errors.
Parameters:
  document - - document to test false if any unauthorized changes are made, true otherwise



checkCgIcrIsEmpty
protected boolean checkCgIcrIsEmpty()(Code)
This method tests if all fields in the ICR section are empty. true if the ICR values passed in are empty, otherwise false.



checkCgIcrRules
protected boolean checkCgIcrRules()(Code)
This checks that if the ICR information is entered that it is valid for this fiscal year and that all of its fields are valid as well (such as account) true if the ICR information is filled in and it is valid



checkCgRules
protected boolean checkCgRules(MaintenanceDocument document)(Code)
This checks to make sure that if cgAuthorized is false it succeeds immediately, otherwise it checks that all the information for CG is correctly entered and identified including:
  • If the SubFundGroup isn't for Contracts and Grants then check to make sure that the cost share and ICR fields are not empty
  • If it isn't a child of CG, then the SubAccount must be of type ICR

Parameters:
  document - true if the user is not authorized to change CG fields, otherwise it checks the above conditions



checkForPartiallyEnteredReportingFields
protected boolean checkForPartiallyEnteredReportingFields()(Code)
This checks that the reporting fields are entered altogether or none at all false if only one reporting field filled out and not all of them, true otherwise



disallowAnyValues
protected boolean disallowAnyValues(String value, String fieldName)(Code)
This method tests the value entered, and if there is anything there it logs a new error, and returns false.
Parameters:
  value - - String value to be tested
Parameters:
  fieldName - - name of the field being tested false if there is any value in value, otherwise true



disallowChangedValues
protected boolean disallowChangedValues(String oldValue, String newValue, String fieldName)(Code)
This method tests the two values entered, and if there is any change between the two, it logs an error, and returns false. Note that the comparison is done after trimming both leading and trailing whitespace from both strings, and then doing a case-insensitive comparison.
Parameters:
  oldValue - - the original String value of the field
Parameters:
  newValue - - the new String value of the field
Parameters:
  fieldName - - name of the field being tested false if there is any difference between the old and new, true otherwise



getCgAuthorized
protected boolean getCgAuthorized()(Code)



isCgAuthorized
protected boolean isCgAuthorized(UniversalUser user)(Code)
This method tests whether the specified user is part of the group that grants authorization to the CG fields.
Parameters:
  user - - the user to test true if user is part of the group, false otherwise



isFieldValueChanged
protected boolean isFieldValueChanged(String oldValue, String newValue)(Code)
This compares two string values to see if the newValue has changed from the oldValue
Parameters:
  oldValue - - original value
Parameters:
  newValue - - new value true if the two fields are different from each other



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)



setCgAuthorized
protected void setCgAuthorized(boolean cgAuthorized)(Code)



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.
Parameters:
  document - - the maintenanceDocument being evaluated



Fields inherited from org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase
final public static String DOCUMENT_ERROR_PREFIX(Code)(Java Doc)
protected static org.apache.log4j.Logger LOG(Code)(Java Doc)
final public static String MAINTAINABLE_ERROR_PATH(Code)(Java Doc)
final public static String MAINTAINABLE_ERROR_PREFIX(Code)(Java Doc)
protected BusinessObjectDictionaryService boDictionaryService(Code)(Java Doc)
protected BusinessObjectService boService(Code)(Java Doc)
protected KualiConfigurationService configService(Code)(Java Doc)
protected DataDictionaryService ddService(Code)(Java Doc)
protected DictionaryValidationService dictionaryValidationService(Code)(Java Doc)
protected DocumentAuthorizationService documentAuthorizationService(Code)(Java Doc)
protected MaintenanceDocumentDictionaryService maintDocDictionaryService(Code)(Java Doc)
protected PersistenceService persistenceService(Code)(Java Doc)
protected PersistenceStructureService persistenceStructureService(Code)(Java Doc)
protected UniversalUserService universalUserService(Code)(Java Doc)
protected WorkflowDocumentService workflowDocumentService(Code)(Java Doc)

Methods inherited from org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase
protected boolean apcRuleFails(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)(Java Doc)
protected boolean applyApcRule(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)(Java Doc)
protected boolean checkAuthorizationRestrictions(MaintenanceDocument document)(Code)(Java Doc)
protected boolean checkEmptyBOField(String propertyName, Object valueToTest, String parameter)(Code)(Java Doc)
protected boolean checkEmptyDocumentField(String propertyName, Object valueToTest, String parameter)(Code)(Java Doc)
protected boolean checkEmptyValue(Object valueToTest)(Code)(Java Doc)
protected boolean checkForPartiallyFilledOutReferenceForeignKeys(String referenceName)(Code)(Java Doc)
protected void clearErrorPath()(Code)(Java Doc)
protected boolean dataDictionaryValidate(MaintenanceDocument document)(Code)(Java Doc)
final protected BusinessObjectDictionaryService getBoDictionaryService()(Code)(Java Doc)
final protected BusinessObjectService getBoService()(Code)(Java Doc)
final protected KualiConfigurationService getConfigService()(Code)(Java Doc)
public DateTimeService getDateTimeService()(Code)(Java Doc)
final protected DataDictionaryService getDdService()(Code)(Java Doc)
final protected DictionaryValidationService getDictionaryValidationService()(Code)(Java Doc)
final protected DocumentAuthorizationService getDocumentAuthorizationService()(Code)(Java Doc)
protected String getFieldLabel(String fieldName)(Code)(Java Doc)
protected String getFieldLabel(Class boClass, String fieldName)(Code)(Java Doc)
final protected MaintenanceDocumentDictionaryService getMaintDocDictionaryService()(Code)(Java Doc)
final protected PersistableBusinessObject getNewBo()(Code)(Java Doc)
final protected PersistableBusinessObject getOldBo()(Code)(Java Doc)
final protected PersistenceService getPersistenceService()(Code)(Java Doc)
final protected PersistenceStructureService getPersistenceStructureService()(Code)(Java Doc)
public UniversalUserService getUniversalUserService()(Code)(Java Doc)
public WorkflowDocumentService getWorkflowDocumentService()(Code)(Java Doc)
protected boolean isCorrectMaintenanceClass(MaintenanceDocument document, Class clazz)(Code)(Java Doc)
protected boolean isDocumentValidForSave(MaintenanceDocument maintenanceDocument)(Code)(Java Doc)
public boolean processAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)(Java Doc)
public boolean processApproveDocument(ApproveDocumentEvent approveEvent)(Code)(Java Doc)
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)(Code)(Java Doc)
protected boolean processCustomApproveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
protected boolean processGlobalApproveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
protected boolean processGlobalRouteDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
protected boolean processGlobalSaveDocumentBusinessRules(MaintenanceDocument document)(Code)(Java Doc)
public boolean processRouteDocument(Document document)(Code)(Java Doc)
public boolean processSaveDocument(Document document)(Code)(Java Doc)
protected void putDocumentError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc)
protected void putDocumentError(String propertyName, String errorConstant, String[] parameters)(Code)(Java Doc)
protected void putFieldError(String propertyName, String errorConstant)(Code)(Java Doc)
protected void putFieldError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc)
protected void putFieldError(String propertyName, String errorConstant, String[] parameters)(Code)(Java Doc)
protected void putFieldErrorWithShortLabel(String propertyName, String errorConstant)(Code)(Java Doc)
protected void putGlobalError(String errorConstant)(Code)(Java Doc)
protected void putGlobalError(String errorConstant, String parameter)(Code)(Java Doc)
protected void putGlobalError(String errorConstant, String[] parameters)(Code)(Java Doc)
protected void putGlobalsError(String propertyName, String errorConstant)(Code)(Java Doc)
protected void putGlobalsError(String propertyName, String errorConstant, String parameter)(Code)(Java Doc)
protected void resumeErrorPath()(Code)(Java Doc)
final public void setBoDictionaryService(BusinessObjectDictionaryService boDictionaryService)(Code)(Java Doc)
final public void setBoService(BusinessObjectService boService)(Code)(Java Doc)
final public void setConfigService(KualiConfigurationService configService)(Code)(Java Doc)
final public void setDdService(DataDictionaryService ddService)(Code)(Java Doc)
final public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)(Code)(Java Doc)
final public void setDocumentAuthorizationService(DocumentAuthorizationService documentAuthorizationService)(Code)(Java Doc)
final public void setMaintDocDictionaryService(MaintenanceDocumentDictionaryService maintDocDictionaryService)(Code)(Java Doc)
protected void setNewBo(PersistableBusinessObject newBo)(Code)(Java Doc)
final public void setPersistenceService(PersistenceService persistenceService)(Code)(Java Doc)
final public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)(Code)(Java Doc)
public void setUniversalUserService(UniversalUserService universalUserService)(Code)(Java Doc)
public void setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)(Code)(Java Doc)
public void setupBaseConvenienceObjects(MaintenanceDocument document)(Code)(Java Doc)
public void setupConvenienceObjects()(Code)(Java Doc)
protected boolean validateDocumentStructure(Document document)(Code)(Java Doc)
protected boolean validateGlobalBusinessObjectPersistable(MaintenanceDocument document)(Code)(Java Doc)
protected boolean validateMaintenanceDocument(MaintenanceDocument maintenanceDocument)(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.