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

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



Constructor Summary
public  OrganizationRoutingModelRule()
    

Method Summary
protected  booleancheckDelegateFromAmountPositive(OrganizationRoutingModel delegateModel)
    
protected  booleancheckDelegateToAmountGreaterThanFromAmount(OrganizationRoutingModel delegateModel)
     Checks that if approval from amount is null, that approval to this amount is null or zero; and then checks that approval to amount is greater than or equal to approval from amount.
protected  booleancheckDelegateToAmountNotNull(OrganizationRoutingModel delegateModel)
    
protected  booleancheckDelegateUserRules(OrganizationRoutingModel delegateModel)
    
protected  booleancheckModelNameHasAtLeastOneActiveModel(OrganizationRoutingModelName globalDelegateTemplate)
     This method checks that the account delegate model has at least one active "model" within it.
protected  booleancheckModelNameHasAtLeastOneModel(OrganizationRoutingModelName globalDelegateTemplate)
     This method makes certain that the collection of account delegates in the "mo itdel" has at least one account delegate template in it.
protected  booleancheckPrimaryRoutePerDocType(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)
     This method validates the rule that says there can be only one PrimaryRoute delegate for each given docType.
protected  booleancheckSimpleRules(OrganizationRoutingModelName globalDelegateTemplate)
     Checks the given rules against the entire Organization Routing Model parent.
protected  booleancheckSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)
     This method checks a series of basic rules for a single org routing model.
public  booleanprocessCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)
    
protected  booleanprocessCustomApproveDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomRouteDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomSaveDocumentBusinessRules(MaintenanceDocument document)
    
public  voidsetupConvenienceObjects()
     This method sets the convenience objects like model, so you have short and easy handles to the new and old objects contained in the maintenance document.


Constructor Detail
OrganizationRoutingModelRule
public OrganizationRoutingModelRule()(Code)
Constructs a OrganizationRoutingModelRule




Method Detail
checkDelegateFromAmountPositive
protected boolean checkDelegateFromAmountPositive(OrganizationRoutingModel delegateModel)(Code)
Checks that if approval from amount is not null, then it is positive
Parameters:
  delegateModel - Organization Routing Model to check true if Organization Routing Model passes the checks, false if otherwise



checkDelegateToAmountGreaterThanFromAmount
protected boolean checkDelegateToAmountGreaterThanFromAmount(OrganizationRoutingModel delegateModel)(Code)
Checks that if approval from amount is null, that approval to this amount is null or zero; and then checks that approval to amount is greater than or equal to approval from amount.
Parameters:
  delegateModel - Organization Routing Model to check true if the Organization Routing Model passes the checks, false if otherwise



checkDelegateToAmountNotNull
protected boolean checkDelegateToAmountNotNull(OrganizationRoutingModel delegateModel)(Code)
Checks that if approval from amount is not null then approval to amount is also not null
Parameters:
  delegateModel - Organization Routing Model to check true if Organization Routing Model passes all checks, false if otherwise



checkDelegateUserRules
protected boolean checkDelegateUserRules(OrganizationRoutingModel delegateModel)(Code)
Checks that the account delegate listed exists in the system, and that user has an active status and is a professional type
Parameters:
  delegateModel - the Organization Routing Model to check true if delegate user passes the rules described above; false if they fail



checkModelNameHasAtLeastOneActiveModel
protected boolean checkModelNameHasAtLeastOneActiveModel(OrganizationRoutingModelName globalDelegateTemplate)(Code)
This method checks that the account delegate model has at least one active "model" within it.
Parameters:
  globalDelegateTemplate - the account delegate model to check true if account delegate model has at least one active model in it.



checkModelNameHasAtLeastOneModel
protected boolean checkModelNameHasAtLeastOneModel(OrganizationRoutingModelName globalDelegateTemplate)(Code)
This method makes certain that the collection of account delegates in the "mo itdel" has at least one account delegate template in it.
Parameters:
  globalDelegateTemplate - the account delegate model to check true if account delegate model has at least one account delegate template in it



checkPrimaryRoutePerDocType
protected boolean checkPrimaryRoutePerDocType(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)(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. true if model, delegate template or org routing model is null, or if the primary routing indicator is set to false or the doc type code is emptyotherwise it checks to make sure that there is indeed one model marked as the primary route



checkSimpleRules
protected boolean checkSimpleRules(OrganizationRoutingModelName globalDelegateTemplate)(Code)
Checks the given rules against the entire Organization Routing Model parent.
Parameters:
  globalDelegateTemplate - the Organization Routing Model parent to check true if document passes all rules, false if otherwise



checkSimpleRulesForOrganizationRoutingModel
protected boolean checkSimpleRulesForOrganizationRoutingModel(OrganizationRoutingModelName globalDelegateTemplate, OrganizationRoutingModel delegateModel)(Code)
This method checks a series of basic rules for a single org routing model. true if model passes all the checks, false if otherwise



processCustomAddCollectionLineBusinessRules
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)(Code)
This method calls
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 model, 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.
See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase.setupConvenienceObjects



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.