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


java.lang.Object
   org.kuali.core.rules.DocumentRuleBase
      org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase

All known Subclasses:   org.kuali.module.chart.rules.OrganizationRoutingModelRule,  org.kuali.module.pdp.rules.PayeeAchAccountRule,  org.kuali.module.purap.rules.PurchaseOrderQuoteLanguageRule,  org.kuali.module.vendor.rules.VendorRule,  org.kuali.module.chart.rules.OrgRule,  org.kuali.module.financial.rules.FinancialUserRule,  org.kuali.module.purap.rules.PurchaseOrderContractLanguageRule,  org.kuali.module.chart.rules.ObjectConsRule,  org.kuali.module.kra.budget.rules.IndirectCostLookupRule,  org.kuali.core.rules.ParameterRule,  org.kuali.module.labor.rules.BenefitsCalculationDocumentRule,  org.kuali.module.financial.rules.BankRule,  org.kuali.core.rules.UniversalUserRule,  org.kuali.module.pdp.rules.AchBankRule,  org.kuali.module.cg.rules.SubcontractorRule,  org.kuali.module.chart.rules.ObjectTypeRule,  org.kuali.module.purap.rules.OrganizationParameterRule,  org.kuali.module.purap.rules.PurapUserRule,  org.kuali.module.financial.rules.CreditCardVendorRule,  org.kuali.module.chart.rules.DelegateRule,  edu.sampleu.travel.bo.TravelAccountRules,  org.kuali.module.chart.rules.ChartRule,  org.kuali.module.chart.rules.AccountRule,  org.kuali.module.cg.rules.ProposalCloseRule,  org.kuali.module.chart.rules.GlobalDocumentRuleBase,  org.kuali.module.chart.rules.IcrAutomatedEntryRule,  org.kuali.module.chart.rules.OrganizationReversionRule,  org.kuali.module.cg.rules.CGMaintenanceDocumentRuleBase,  org.kuali.module.kra.budget.rules.AppointmentTypeMaintenanceDocumentRule,  org.kuali.module.financial.rules.BankAccountRule,  org.kuali.module.chart.rules.SubAccountRule,  org.kuali.module.chart.rules.ChartUserRule,  org.kuali.module.chart.rules.ProjectCodeRule,  org.kuali.module.chart.rules.ObjectCodeRule,  org.kuali.module.financial.rules.ServiceBillingControlRule,  org.kuali.module.chart.rules.SubObjCdRule,  org.kuali.module.chart.rules.AccountingPeriodRule,  org.kuali.module.chart.rules.ReportingCodesRule,  org.kuali.module.cg.rules.AgencyRule,  org.kuali.core.impls.RiceTestMaintenanceDocumentRule,  org.kuali.module.financial.rules.PayeeDocumentRule,  org.kuali.module.chart.rules.ObjectCodeGlobalRule,  org.kuali.module.chart.rules.ObjectLevelRule,  org.kuali.module.chart.rules.OffsetDefinitionRule,
MaintenanceDocumentRuleBase
public class MaintenanceDocumentRuleBase extends DocumentRuleBase implements MaintenanceDocumentRule,AddCollectionLineRule(Code)
This class contains all of the business rules that are common to all maintenance documents.


Field Summary
final public static  StringDOCUMENT_ERROR_PREFIX
    
protected static  org.apache.log4j.LoggerLOG
    
final public static  StringMAINTAINABLE_ERROR_PATH
    
final public static  StringMAINTAINABLE_ERROR_PREFIX
    
protected  BusinessObjectDictionaryServiceboDictionaryService
    
protected  BusinessObjectServiceboService
    
protected  KualiConfigurationServiceconfigService
    
protected  DataDictionaryServiceddService
    
protected  DictionaryValidationServicedictionaryValidationService
    
protected  DocumentAuthorizationServicedocumentAuthorizationService
    
protected  MaintenanceDocumentDictionaryServicemaintDocDictionaryService
    
protected  PersistenceServicepersistenceService
    
protected  PersistenceStructureServicepersistenceStructureService
    
protected  UniversalUserServiceuniversalUserService
    
protected  WorkflowDocumentServiceworkflowDocumentService
    

Constructor Summary
public  MaintenanceDocumentRuleBase()
     Default constructor a MaintenanceDocumentRuleBase.java.

Method Summary
protected  booleanapcRuleFails(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)
     This method is a shallow inverse wrapper around applyApcRule, it simply reverses the return value, for better readability in an if test. This method applies an APC rule based on the values provided. It will throw an ApplicationParameterException if the APC Group and Parm do not exist in the system.
Parameters:
  apcGroupName - - The script or group name in the APC system.
protected  booleanapplyApcRule(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)
     This method applies an APC rule based on the values provided. It will throw an ApplicationParameterException if the APC Group and Parm do not exist in the system.
Parameters:
  apcGroupName - - The script or group name in the APC system.
protected  booleancheckAuthorizationRestrictions(MaintenanceDocument document)
     This method ensures that any fields that are restricted by the Authorization system in the system are also enforced on the back-end, otherwise form manipulation could bypass authorization rules.
protected  booleancheckEmptyBOField(String propertyName, Object valueToTest, String parameter)
     This method accepts an object, and attempts to determine whether it is empty by this method's definition.
protected  booleancheckEmptyDocumentField(String propertyName, Object valueToTest, String parameter)
     This method accepts document field (such as , and attempts to determine whether it is empty by this method's definition.
protected  booleancheckEmptyValue(Object valueToTest)
     This method accepts document field (such as , and attempts to determine whether it is empty by this method's definition.
protected  booleancheckForPartiallyFilledOutReferenceForeignKeys(String referenceName)
     This method checks to make sure that if the foreign-key fields for the given reference attributes have any fields filled out, that all fields are filled out. If any are filled out, but all are not, it will return false and add a global error message about the problem.
Parameters:
  referenceName - - The name of the reference object, whose foreign-key fields must be all-or-none filled out.
protected  voidclearErrorPath()
     This method is used to deal with error paths that are not what we expect them to be.
protected  booleandataDictionaryValidate(MaintenanceDocument document)
     This method executes the DataDictionary Validation against the document.
final protected  BusinessObjectDictionaryServicegetBoDictionaryService()
     Gets the boDictionaryService attribute.
final protected  BusinessObjectServicegetBoService()
     Gets the boService attribute.
final protected  KualiConfigurationServicegetConfigService()
     Gets the configService attribute.
public  DateTimeServicegetDateTimeService()
    
final protected  DataDictionaryServicegetDdService()
     Gets the ddService attribute.
final protected  DictionaryValidationServicegetDictionaryValidationService()
     Gets the dictionaryValidationService attribute.
final protected  DocumentAuthorizationServicegetDocumentAuthorizationService()
     Gets the documentAuthorizationService attribute.
protected  StringgetFieldLabel(String fieldName)
     This method translates the passed in field name into a human-readable attribute label. It assumes the existing newBO's class as the class to examine the fieldName for.
Parameters:
  fieldName - The fieldName you want a human-readable label for.
protected  StringgetFieldLabel(Class boClass, String fieldName)
     This method translates the passed in field name into a human-readable attribute label. It assumes the existing newBO's class as the class to examine the fieldName for.
Parameters:
  boClass - The class to use in combination with the fieldName.
Parameters:
  fieldName - The fieldName you want a human-readable label for.
final protected  MaintenanceDocumentDictionaryServicegetMaintDocDictionaryService()
     Gets the maintDocDictionaryService attribute.
final protected  PersistableBusinessObjectgetNewBo()
     Gets the newBo attribute.
final protected  PersistableBusinessObjectgetOldBo()
     Gets the oldBo attribute.
final protected  PersistenceServicegetPersistenceService()
     Gets the persistenceService attribute.
final protected  PersistenceStructureServicegetPersistenceStructureService()
     Gets the persistenceStructureService attribute.
public  UniversalUserServicegetUniversalUserService()
    
public  WorkflowDocumentServicegetWorkflowDocumentService()
     Gets the workflowDocumentService attribute.
protected  booleanisCorrectMaintenanceClass(MaintenanceDocument document, Class clazz)
     This method tests to make sure the MaintenanceDocument passed in is based on the class you are expecting.
protected  booleanisDocumentValidForSave(MaintenanceDocument maintenanceDocument)
     This method checks to see if the document is in a state that it can be saved without causing exceptions. Note that Business Rules are NOT enforced here, only validity checks. This method will only return false if the document is in such a state that routing it will cause RunTimeExceptions.
Parameters:
  maintenanceDocument - - a populated MaintenaceDocument instance.
public  booleanprocessAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)
    
public  booleanprocessApproveDocument(ApproveDocumentEvent approveEvent)
    
public  booleanprocessCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)
    
protected  booleanprocessCustomApproveDocumentBusinessRules(MaintenanceDocument document)
     This method should be overridden to provide custom rules for processing document approval.
protected  booleanprocessCustomRouteDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessCustomSaveDocumentBusinessRules(MaintenanceDocument document)
    
protected  booleanprocessGlobalApproveDocumentBusinessRules(MaintenanceDocument document)
     This method enforces all business rules that are common to all maintenance documents which must be tested before doing an approval.
protected  booleanprocessGlobalRouteDocumentBusinessRules(MaintenanceDocument document)
     This method enforces all business rules that are common to all maintenance documents which must be tested before doing a route.
protected  booleanprocessGlobalSaveDocumentBusinessRules(MaintenanceDocument document)
     This method enforces all business rules that are common to all maintenance documents which must be tested before doing a save. It can be overloaded in special cases where a MaintenanceDocument has very special needs that would be contrary to what is enforced here. Note that although this method returns a true or false to indicate whether the save should happen or not, this result may not be followed by the calling method.
public  booleanprocessRouteDocument(Document document)
    
public  booleanprocessSaveDocument(Document document)
    
protected  voidputDocumentError(String propertyName, String errorConstant, String parameter)
     This method is a convenience method to add a property-specific document error to the global errors list.
protected  voidputDocumentError(String propertyName, String errorConstant, String[] parameters)
     This method is a convenience method to add a property-specific document error to the global errors list.
protected  voidputFieldError(String propertyName, String errorConstant)
     This method is a convenience method to add a property-specific error to the global errors list.
protected  voidputFieldError(String propertyName, String errorConstant, String parameter)
     This method is a convenience method to add a property-specific error to the global errors list.
protected  voidputFieldError(String propertyName, String errorConstant, String[] parameters)
     This method is a convenience method to add a property-specific error to the global errors list.
protected  voidputFieldErrorWithShortLabel(String propertyName, String errorConstant)
     Adds a property-specific error to the global errors list, with the DD short label as the single argument.
Parameters:
  propertyName - - Property name of the element that is associated with the error.
protected  voidputGlobalError(String errorConstant)
     This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
protected  voidputGlobalError(String errorConstant, String parameter)
     This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
protected  voidputGlobalError(String errorConstant, String[] parameters)
     This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
protected  voidputGlobalsError(String propertyName, String errorConstant)
    
protected  voidputGlobalsError(String propertyName, String errorConstant, String parameter)
    
protected  voidresumeErrorPath()
     This method is used to deal with error paths that are not what we expect them to be.
final public  voidsetBoDictionaryService(BusinessObjectDictionaryService boDictionaryService)
     Sets the boDictionaryService attribute value.
final public  voidsetBoService(BusinessObjectService boService)
     Sets the boService attribute value.
final public  voidsetConfigService(KualiConfigurationService configService)
     Sets the configService attribute value.
final public  voidsetDdService(DataDictionaryService ddService)
     Sets the ddService attribute value.
final public  voidsetDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
     Sets the dictionaryValidationService attribute value.
final public  voidsetDocumentAuthorizationService(DocumentAuthorizationService documentAuthorizationService)
     Sets the documentAuthorizationService attribute value.
final public  voidsetMaintDocDictionaryService(MaintenanceDocumentDictionaryService maintDocDictionaryService)
     Sets the maintDocDictionaryService attribute value.
protected  voidsetNewBo(PersistableBusinessObject newBo)
    
final public  voidsetPersistenceService(PersistenceService persistenceService)
     Sets the persistenceService attribute value.
final public  voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService)
     Sets the persistenceStructureService attribute value.
public  voidsetUniversalUserService(UniversalUserService universalUserService)
    
public  voidsetWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)
     Sets the workflowDocumentService attribute value.
public  voidsetupBaseConvenienceObjects(MaintenanceDocument document)
    
public  voidsetupConvenienceObjects()
    
protected  booleanvalidateDocumentStructure(Document document)
     This method makes sure the document itself is valid, and has the necessary fields populated to be routable.
protected  booleanvalidateGlobalBusinessObjectPersistable(MaintenanceDocument document)
     This method checks whether this maint doc contains Global Business Objects, and if so, whether the GBOs are in a persistable state.
protected  booleanvalidateMaintenanceDocument(MaintenanceDocument maintenanceDocument)
     This method checks to make sure the document is a valid maintenanceDocument, and has the necessary values populated such that it will not cause exceptions in later routing or business rules testing.

Field Detail
DOCUMENT_ERROR_PREFIX
final public static String DOCUMENT_ERROR_PREFIX(Code)



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



MAINTAINABLE_ERROR_PATH
final public static String MAINTAINABLE_ERROR_PATH(Code)



MAINTAINABLE_ERROR_PREFIX
final public static String MAINTAINABLE_ERROR_PREFIX(Code)



boDictionaryService
protected BusinessObjectDictionaryService boDictionaryService(Code)



boService
protected BusinessObjectService boService(Code)



configService
protected KualiConfigurationService configService(Code)



ddService
protected DataDictionaryService ddService(Code)



dictionaryValidationService
protected DictionaryValidationService dictionaryValidationService(Code)



documentAuthorizationService
protected DocumentAuthorizationService documentAuthorizationService(Code)



maintDocDictionaryService
protected MaintenanceDocumentDictionaryService maintDocDictionaryService(Code)



persistenceService
protected PersistenceService persistenceService(Code)



persistenceStructureService
protected PersistenceStructureService persistenceStructureService(Code)



universalUserService
protected UniversalUserService universalUserService(Code)



workflowDocumentService
protected WorkflowDocumentService workflowDocumentService(Code)




Constructor Detail
MaintenanceDocumentRuleBase
public MaintenanceDocumentRuleBase()(Code)
Default constructor a MaintenanceDocumentRuleBase.java.




Method Detail
apcRuleFails
protected boolean apcRuleFails(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)
This method is a shallow inverse wrapper around applyApcRule, it simply reverses the return value, for better readability in an if test. This method applies an APC rule based on the values provided. It will throw an ApplicationParameterException if the APC Group and Parm do not exist in the system.
Parameters:
  apcGroupName - - The script or group name in the APC system. If the value is null or blank, an IllegalArgumentExceptionwill be thrown.
Parameters:
  parameterName - - The name of the parm/rule in the APC system. If the value is null or blank, an IllegalArgumentExceptionwill be thrown.
Parameters:
  valueToTest - - The String value to test against the APC rule. The value may be null or blank without throwing an error,but the rule will likely fail if null or blank. True if the rule fails, False if the rule passes.



applyApcRule
protected boolean applyApcRule(String parameterNamespace, String parameterDetailTypeCode, String parameterName, String valueToTest)(Code)
This method applies an APC rule based on the values provided. It will throw an ApplicationParameterException if the APC Group and Parm do not exist in the system.
Parameters:
  apcGroupName - - The script or group name in the APC system. If the value is null or blank, an IllegalArgumentExceptionwill be thrown.
Parameters:
  parameterName - - The name of the parm/rule in the APC system. If the value is null or blank, an IllegalArgumentExceptionwill be thrown.
Parameters:
  valueToTest - - The String value to test against the APC rule. The value may be null or blank without throwing an error,but the rule will likely fail if null or blank. True if the rule passes, False if the rule fails.



checkAuthorizationRestrictions
protected boolean checkAuthorizationRestrictions(MaintenanceDocument document)(Code)
This method ensures that any fields that are restricted by the Authorization system in the system are also enforced on the back-end, otherwise form manipulation could bypass authorization rules. This method will add errors to the Global ErrorMap if any problems are encountered.
Parameters:
  document - - the maintenance document being evaluated true if no failures occurred, false otherwise



checkEmptyBOField
protected boolean checkEmptyBOField(String propertyName, Object valueToTest, String parameter)(Code)
This method accepts an object, and attempts to determine whether it is empty by this method's definition. OBJECT RESULT null false empty-string false whitespace false otherwise true If the result is false, it will add an object field error to the Global Errors.
Parameters:
  valueToTest - - any object to test, usually a String
Parameters:
  propertyName - - the name of the property being tested true or false, by the description above



checkEmptyDocumentField
protected boolean checkEmptyDocumentField(String propertyName, Object valueToTest, String parameter)(Code)
This method accepts document field (such as , and attempts to determine whether it is empty by this method's definition. OBJECT RESULT null false empty-string false whitespace false otherwise true If the result is false, it will add document field error to the Global Errors.
Parameters:
  valueToTest - - any object to test, usually a String
Parameters:
  propertyName - - the name of the property being tested true or false, by the description above



checkEmptyValue
protected boolean checkEmptyValue(Object valueToTest)(Code)
This method accepts document field (such as , and attempts to determine whether it is empty by this method's definition. OBJECT RESULT null false empty-string false whitespace false otherwise true It will the result as a boolean
Parameters:
  valueToTest - - any object to test, usually a String



checkForPartiallyFilledOutReferenceForeignKeys
protected boolean checkForPartiallyFilledOutReferenceForeignKeys(String referenceName)(Code)
This method checks to make sure that if the foreign-key fields for the given reference attributes have any fields filled out, that all fields are filled out. If any are filled out, but all are not, it will return false and add a global error message about the problem.
Parameters:
  referenceName - - The name of the reference object, whose foreign-key fields must be all-or-none filled out. true if this is the case, false if not



clearErrorPath
protected void clearErrorPath()(Code)
This method is used to deal with error paths that are not what we expect them to be. This method, along with resumeErrorPath() are used to temporarily clear the errorPath, and then return it to the original state after the rule is executed. This method is called at the very beginning of rule enforcement and pulls a copy of the contents of the errorPath ArrayList to a local arrayList for temporary storage.



dataDictionaryValidate
protected boolean dataDictionaryValidate(MaintenanceDocument document)(Code)
This method executes the DataDictionary Validation against the document.
Parameters:
  document - true if it passes DD validation, false otherwise



getBoDictionaryService
final protected BusinessObjectDictionaryService getBoDictionaryService()(Code)
Gets the boDictionaryService attribute. Returns the boDictionaryService.



getBoService
final protected BusinessObjectService getBoService()(Code)
Gets the boService attribute. Returns the boService.



getConfigService
final protected KualiConfigurationService getConfigService()(Code)
Gets the configService attribute. Returns the configService.



getDateTimeService
public DateTimeService getDateTimeService()(Code)



getDdService
final protected DataDictionaryService getDdService()(Code)
Gets the ddService attribute. Returns the ddService.



getDictionaryValidationService
final protected DictionaryValidationService getDictionaryValidationService()(Code)
Gets the dictionaryValidationService attribute. Returns the dictionaryValidationService.



getDocumentAuthorizationService
final protected DocumentAuthorizationService getDocumentAuthorizationService()(Code)
Gets the documentAuthorizationService attribute. Returns the documentAuthorizationService.



getFieldLabel
protected String getFieldLabel(String fieldName)(Code)
This method translates the passed in field name into a human-readable attribute label. It assumes the existing newBO's class as the class to examine the fieldName for.
Parameters:
  fieldName - The fieldName you want a human-readable label for. A human-readable label, pulled from the DataDictionary.



getFieldLabel
protected String getFieldLabel(Class boClass, String fieldName)(Code)
This method translates the passed in field name into a human-readable attribute label. It assumes the existing newBO's class as the class to examine the fieldName for.
Parameters:
  boClass - The class to use in combination with the fieldName.
Parameters:
  fieldName - The fieldName you want a human-readable label for. A human-readable label, pulled from the DataDictionary.



getMaintDocDictionaryService
final protected MaintenanceDocumentDictionaryService getMaintDocDictionaryService()(Code)
Gets the maintDocDictionaryService attribute. Returns the maintDocDictionaryService.



getNewBo
final protected PersistableBusinessObject getNewBo()(Code)
Gets the newBo attribute. Returns the newBo.



getOldBo
final protected PersistableBusinessObject getOldBo()(Code)
Gets the oldBo attribute. Returns the oldBo.



getPersistenceService
final protected PersistenceService getPersistenceService()(Code)
Gets the persistenceService attribute. Returns the persistenceService.



getPersistenceStructureService
final protected PersistenceStructureService getPersistenceStructureService()(Code)
Gets the persistenceStructureService attribute. Returns the persistenceStructureService.



getUniversalUserService
public UniversalUserService getUniversalUserService()(Code)



getWorkflowDocumentService
public WorkflowDocumentService getWorkflowDocumentService()(Code)
Gets the workflowDocumentService attribute. Returns the workflowDocumentService.



isCorrectMaintenanceClass
protected boolean isCorrectMaintenanceClass(MaintenanceDocument document, Class clazz)(Code)
This method tests to make sure the MaintenanceDocument passed in is based on the class you are expecting. It does this based on the NewMaintainableObject of the MaintenanceDocument.
Parameters:
  document - - MaintenanceDocument instance you want to test
Parameters:
  clazz - - class you are expecting the MaintenanceDocument to be based on true if they match, false if not



isDocumentValidForSave
protected boolean isDocumentValidForSave(MaintenanceDocument maintenanceDocument)(Code)
This method checks to see if the document is in a state that it can be saved without causing exceptions. Note that Business Rules are NOT enforced here, only validity checks. This method will only return false if the document is in such a state that routing it will cause RunTimeExceptions.
Parameters:
  maintenanceDocument - - a populated MaintenaceDocument instance. boolean - returns true unless the object is in an invalid state.



processAddCollectionLineBusinessRules
public boolean processAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject bo)(Code)



processApproveDocument
public boolean processApproveDocument(ApproveDocumentEvent approveEvent)(Code)

See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRule.processApproveDocument(ApproveDocumentEvent)



processCustomAddCollectionLineBusinessRules
public boolean processCustomAddCollectionLineBusinessRules(MaintenanceDocument document, String collectionName, PersistableBusinessObject line)(Code)



processCustomApproveDocumentBusinessRules
protected boolean processCustomApproveDocumentBusinessRules(MaintenanceDocument document)(Code)
This method should be overridden to provide custom rules for processing document approval.
Parameters:
  document - booelan



processCustomRouteDocumentBusinessRules
protected boolean processCustomRouteDocumentBusinessRules(MaintenanceDocument document)(Code)
This method should be overridden to provide custom rules for processing document routing
Parameters:
  document - boolean



processCustomSaveDocumentBusinessRules
protected boolean processCustomSaveDocumentBusinessRules(MaintenanceDocument document)(Code)
This method should be overridden to provide custom rules for processing document saving
Parameters:
  document - boolean



processGlobalApproveDocumentBusinessRules
protected boolean processGlobalApproveDocumentBusinessRules(MaintenanceDocument document)(Code)
This method enforces all business rules that are common to all maintenance documents which must be tested before doing an approval. It can be overloaded in special cases where a MaintenanceDocument has very special needs that would be contrary to what is enforced here.
Parameters:
  document - - a populated MaintenanceDocument instance true if the document can be approved, false if not



processGlobalRouteDocumentBusinessRules
protected boolean processGlobalRouteDocumentBusinessRules(MaintenanceDocument document)(Code)
This method enforces all business rules that are common to all maintenance documents which must be tested before doing a route. It can be overloaded in special cases where a MaintenanceDocument has very special needs that would be contrary to what is enforced here.
Parameters:
  document - - a populated MaintenanceDocument instance true if the document can be routed, false if not



processGlobalSaveDocumentBusinessRules
protected boolean processGlobalSaveDocumentBusinessRules(MaintenanceDocument document)(Code)
This method enforces all business rules that are common to all maintenance documents which must be tested before doing a save. It can be overloaded in special cases where a MaintenanceDocument has very special needs that would be contrary to what is enforced here. Note that although this method returns a true or false to indicate whether the save should happen or not, this result may not be followed by the calling method. In other words, the boolean result will likely be ignored, and the document saved, regardless.
Parameters:
  document - - a populated MaintenanceDocument instance true if all business rules succeed, false if not



processRouteDocument
public boolean processRouteDocument(Document document)(Code)

See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRule.processRouteDocument(org.kuali.core.document.Document)



processSaveDocument
public boolean processSaveDocument(Document document)(Code)

See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRule.processSaveDocument(org.kuali.core.document.Document)



putDocumentError
protected void putDocumentError(String propertyName, String errorConstant, String parameter)(Code)
This method is a convenience method to add a property-specific document error to the global errors list. This method makes sure that the correct prefix is added to the property name so that it will display correctly on maintenance documents.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameter - - Single parameter value that can be used in the message so that you can display specific values to theuser.



putDocumentError
protected void putDocumentError(String propertyName, String errorConstant, String[] parameters)(Code)
This method is a convenience method to add a property-specific document error to the global errors list. This method makes sure that the correct prefix is added to the property name so that it will display correctly on maintenance documents.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameters - - Array of String parameters that can be used in the message so that you can display specific values to theuser.



putFieldError
protected void putFieldError(String propertyName, String errorConstant)(Code)
This method is a convenience method to add a property-specific error to the global errors list. This method makes sure that the correct prefix is added to the property name so that it will display correctly on maintenance documents.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.



putFieldError
protected void putFieldError(String propertyName, String errorConstant, String parameter)(Code)
This method is a convenience method to add a property-specific error to the global errors list. This method makes sure that the correct prefix is added to the property name so that it will display correctly on maintenance documents.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameter - - Single parameter value that can be used in the message so that you can display specific values to theuser.



putFieldError
protected void putFieldError(String propertyName, String errorConstant, String[] parameters)(Code)
This method is a convenience method to add a property-specific error to the global errors list. This method makes sure that the correct prefix is added to the property name so that it will display correctly on maintenance documents.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameters - - Array of strings holding values that can be used in the message so that you can display specific valuesto the user.



putFieldErrorWithShortLabel
protected void putFieldErrorWithShortLabel(String propertyName, String errorConstant)(Code)
Adds a property-specific error to the global errors list, with the DD short label as the single argument.
Parameters:
  propertyName - - Property name of the element that is associated with the error. Used to mark the field as errored inthe UI.
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.



putGlobalError
protected void putGlobalError(String errorConstant)(Code)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.



putGlobalError
protected void putGlobalError(String errorConstant, String parameter)(Code)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameter - - Replacement value for part of the error message.



putGlobalError
protected void putGlobalError(String errorConstant, String[] parameters)(Code)
This method is a convenience method to easily add a Document level error (ie, one not tied to a specific field, but applicable to the whole document).
Parameters:
  errorConstant - - Error Constant that can be mapped to a resource for the actual text message.
Parameters:
  parameters - - Array of replacement values for part of the error message.



putGlobalsError
protected void putGlobalsError(String propertyName, String errorConstant)(Code)
This method specifically doesn't put any prefixes before the error so that the developer can do things specific to the globals errors (like newDelegateChangeDocument errors)
Parameters:
  propertyName -
Parameters:
  errorConstant -



putGlobalsError
protected void putGlobalsError(String propertyName, String errorConstant, String parameter)(Code)
This method specifically doesn't put any prefixes before the error so that the developer can do things specific to the globals errors (like newDelegateChangeDocument errors)
Parameters:
  propertyName -
Parameters:
  errorConstant -
Parameters:
  parameter -



resumeErrorPath
protected void resumeErrorPath()(Code)
This method is used to deal with error paths that are not what we expect them to be. This method, along with clearErrorPath() are used to temporarily clear the errorPath, and then return it to the original state after the rule is executed. This method is called at the very end of the rule enforcement, and returns the temporarily stored copy of the errorPath to the global errorPath, so that no other classes are interrupted.



setBoDictionaryService
final public void setBoDictionaryService(BusinessObjectDictionaryService boDictionaryService)(Code)
Sets the boDictionaryService attribute value.
Parameters:
  boDictionaryService - The boDictionaryService to set.



setBoService
final public void setBoService(BusinessObjectService boService)(Code)
Sets the boService attribute value.
Parameters:
  boService - The boService to set.



setConfigService
final public void setConfigService(KualiConfigurationService configService)(Code)
Sets the configService attribute value.
Parameters:
  configService - The configService to set.



setDdService
final public void setDdService(DataDictionaryService ddService)(Code)
Sets the ddService attribute value.
Parameters:
  ddService - The ddService to set.



setDictionaryValidationService
final public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)(Code)
Sets the dictionaryValidationService attribute value.
Parameters:
  dictionaryValidationService - The dictionaryValidationService to set.



setDocumentAuthorizationService
final public void setDocumentAuthorizationService(DocumentAuthorizationService documentAuthorizationService)(Code)
Sets the documentAuthorizationService attribute value.
Parameters:
  documentAuthorizationService - The documentAuthorizationService to set.



setMaintDocDictionaryService
final public void setMaintDocDictionaryService(MaintenanceDocumentDictionaryService maintDocDictionaryService)(Code)
Sets the maintDocDictionaryService attribute value.
Parameters:
  maintDocDictionaryService - The maintDocDictionaryService to set.



setNewBo
protected void setNewBo(PersistableBusinessObject newBo)(Code)



setPersistenceService
final public void setPersistenceService(PersistenceService persistenceService)(Code)
Sets the persistenceService attribute value.
Parameters:
  persistenceService - The persistenceService to set.



setPersistenceStructureService
final public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)(Code)
Sets the persistenceStructureService attribute value.
Parameters:
  persistenceStructureService - The persistenceStructureService to set.



setUniversalUserService
public void setUniversalUserService(UniversalUserService universalUserService)(Code)



setWorkflowDocumentService
public void setWorkflowDocumentService(WorkflowDocumentService workflowDocumentService)(Code)
Sets the workflowDocumentService attribute value.
Parameters:
  workflowDocumentService - The workflowDocumentService to set.



setupBaseConvenienceObjects
public void setupBaseConvenienceObjects(MaintenanceDocument document)(Code)

See Also:   org.kuali.core.maintenance.rules.MaintenanceDocumentRule.setupBaseConvenienceObjects(MaintenanceDocument)



setupConvenienceObjects
public void setupConvenienceObjects()(Code)



validateDocumentStructure
protected boolean validateDocumentStructure(Document document)(Code)
This method makes sure the document itself is valid, and has the necessary fields populated to be routable. This is not a business rules test, rather its a structure test to make sure that the document will not cause exceptions before routing.
Parameters:
  document - - document to be tested false if the document is missing key values, true otherwise



validateGlobalBusinessObjectPersistable
protected boolean validateGlobalBusinessObjectPersistable(MaintenanceDocument document)(Code)
This method checks whether this maint doc contains Global Business Objects, and if so, whether the GBOs are in a persistable state. This will return false if this method determines that the GBO will cause a SQL Exception when the document is persisted.
Parameters:
  document - False when the method determines that the contained Global Business Object will cause a SQL Exception, and thedocument should not be saved. It will return True otherwise.



validateMaintenanceDocument
protected boolean validateMaintenanceDocument(MaintenanceDocument maintenanceDocument)(Code)
This method checks to make sure the document is a valid maintenanceDocument, and has the necessary values populated such that it will not cause exceptions in later routing or business rules testing. This is not a business rules test.
Parameters:
  maintenanceDocument - - document to be tested whether maintenance doc passes
throws:
  ValidationException -



Methods inherited from org.kuali.core.rules.DocumentRuleBase
protected DictionaryValidationService getDictionaryValidationService()(Code)(Java Doc)
protected KualiConfigurationService getKualiConfigurationService()(Code)(Java Doc)
protected KualiModuleService getKualiModuleService()(Code)(Java Doc)
public int getMaxDictionaryValidationDepth()(Code)(Java Doc)
protected UniversalUserService getUniversalUserService()(Code)(Java Doc)
protected KualiWorkflowInfo getWorkflowInfoService()(Code)(Java Doc)
public boolean isAddHocRoutePersonValid(Document document, AdHocRoutePerson person)(Code)(Java Doc)
public boolean isAddHocRouteWorkgroupValid(AdHocRouteWorkgroup workgroup)(Code)(Java Doc)
public boolean isDocumentAttributesValid(Document document, boolean validateRequired)(Code)(Java Doc)
public boolean isDocumentOverviewValid(Document document)(Code)(Java Doc)
public boolean isNoteValid(Note note)(Code)(Java Doc)
public boolean processAddAdHocRoutePerson(Document document, AdHocRoutePerson adHocRoutePerson)(Code)(Java Doc)
public boolean processAddAdHocRouteWorkgroup(Document document, AdHocRouteWorkgroup adHocRouteWorkgroup)(Code)(Java Doc)
public boolean processAddNote(Document document, Note note)(Code)(Java Doc)
public boolean processApproveDocument(ApproveDocumentEvent approveEvent)(Code)(Java Doc)
protected boolean processCustomAddAdHocRoutePersonBusinessRules(Document document, AdHocRoutePerson person)(Code)(Java Doc)
protected boolean processCustomAddAdHocRouteWorkgroupBusinessRules(Document document, AdHocRouteWorkgroup workgroup)(Code)(Java Doc)
protected boolean processCustomAddNoteBusinessRules(Document document, Note note)(Code)(Java Doc)
protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)(Java Doc)
protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)(Java Doc)
protected boolean processCustomSaveDocumentBusinessRules(Document document)(Code)(Java Doc)
public boolean processRouteDocument(Document document)(Code)(Java Doc)
public boolean processSaveDocument(Document document)(Code)(Java Doc)
public void setMaxDictionaryValidationDepth(int maxDictionaryValidationDepth)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.