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


org.kuali.core.service.DictionaryValidationService

All known Subclasses:   org.kuali.core.service.impl.DictionaryValidationServiceImpl,
DictionaryValidationService
public interface DictionaryValidationService (Code)
Defines the API for the validating against the data dictionary.




Method Summary
public  booleanisBusinessObjectValid(PersistableBusinessObject businessObject)
     Encapsulates DictionaryValidationService.validateBusinessObject(BusinessObject) and returns boolean so one doesn't need to check the ErrorMap.Validates the business object primitive attributes against the data dictionary.
public  booleanisBusinessObjectValid(PersistableBusinessObject businessObject, String prefix)
     Encapsulates DictionaryValidationService.validateBusinessObject(BusinessObject) and returns boolean so one doesn't need to check the ErrorMap.Validates the business object primitive attributes against the data dictionary.
public  booleanvalidateApcRule(PersistableBusinessObject bo, ApcRuleDefinition apcRule)
     This method applies a specific rule against the given BusinessObject as defined in the MaintenanceDocument.xml file.
public  booleanvalidateApcRules(PersistableBusinessObject bo)
     This method applies all rules against the given BusinessObject as defined in the MaintenanceDocument.xml file.
public  voidvalidateAttributeFormat(String entryName, String attributeName, String attributeValue, String errorKey)
     Validates an attribute of a given class for proper min, max length, syntax, and required.
public  voidvalidateAttributeRequired(String entryName, String attributeName, Object attributeValue, Boolean forMaintenance, String errorKey)
     Validates an attribute of a given class for required check.
public  voidvalidateBusinessObject(PersistableBusinessObject businessObject)
     Validates the business object primitive attributes against the data dictionary.
public  voidvalidateBusinessObject(PersistableBusinessObject businessObject, boolean validateRequired)
     Validates the business object primitive attributes against the data dictionary.
public  voidvalidateBusinessObjectsRecursively(PersistableBusinessObject businessObject, int depth)
     Validates the business object against the dictionary, uses reflection to get any child business objects, and recursively calls back.
public  booleanvalidateDefaultExistenceChecks(PersistableBusinessObject bo)
     This method does an existence check against all references of a BusinessObject as defined in the MaintenanceDocument.xml file for that business object.
public  voidvalidateDocument(Document document)
     Validates the contents of a document (i.e.
public  voidvalidateDocumentAndUpdatableReferencesRecursively(Document document, int maxDepth, boolean validateRequired)
    
public  voidvalidateDocumentAttribute(Document document, String attributeName, String errorPrefix)
     Validates the specified attribute of the given document against the data dictionary.
public  voidvalidateDocumentRecursively(Document document, int depth)
     Validates the contents of a document (i.e.
public  booleanvalidateReferenceExists(PersistableBusinessObject bo, ReferenceDefinition reference)
     This method examines the populated BusinessObject bo instance passed in for a member named by the referenceName.
public  booleanvalidateReferenceExists(PersistableBusinessObject bo, String referenceName)
     This method examines the populated BusinessObject bo instance passed in for a member named by the referenceName.
public  booleanvalidateReferenceExistsAndIsActive(PersistableBusinessObject bo, ReferenceDefinition reference)
     This method intelligently tests the designated reference on the bo for both existence and active status, where appropriate. It will not test anything if the foreign-key fields for the given reference arent filled out with values, and it will not test active status if the reference doesnt exist. Further, it will only test active status where the correct flag is set. On failures of either sort, it will put the relevant errors into the GlobalVariables errorMap, and return a false.
public  booleanvalidateReferenceExistsAndIsActive(PersistableBusinessObject bo, String referenceName, String activeIndicatorAttributeName, boolean activeIndicatorReversed, boolean activeIndicatorSet, String attributeToHighlightOnFail, String displayFieldName)
     This method intelligently tests the designated reference on the bo for both existence and active status, where appropriate. It will not test anything if the foreign-key fields for the given reference arent filled out with values, and it will not test active status if the reference doesnt exist. Note that it will not fail or raise any error if all of the foreign-keys are filled with a value.
public  booleanvalidateReferenceIsActive(PersistableBusinessObject bo, ReferenceDefinition reference)
     This method retrieves the reference from the DB, and then tests whether the object is active.
public  booleanvalidateReferenceIsActive(PersistableBusinessObject bo, String referenceName, String activeIndicatorAttributeName, boolean activeIndicatorReversed)
     This method retrieves the reference from the DB, and then tests whether the object is active.



Method Detail
isBusinessObjectValid
public boolean isBusinessObjectValid(PersistableBusinessObject businessObject)(Code)
Encapsulates DictionaryValidationService.validateBusinessObject(BusinessObject) and returns boolean so one doesn't need to check the ErrorMap.Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they areencountered.

Makes no error path adjustments
Parameters:
  businessObject - - business object to validate boolean validOrNot



isBusinessObjectValid
public boolean isBusinessObjectValid(PersistableBusinessObject businessObject, String prefix)(Code)
Encapsulates DictionaryValidationService.validateBusinessObject(BusinessObject) and returns boolean so one doesn't need to check the ErrorMap.Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they areencountered.

Makes no error path adjustments
Parameters:
  businessObject - - business object to validate
Parameters:
  prefix - - error prefix boolean valid or not



validateApcRule
public boolean validateApcRule(PersistableBusinessObject bo, ApcRuleDefinition apcRule)(Code)
This method applies a specific rule against the given BusinessObject as defined in the MaintenanceDocument.xml file. Appropriate errors will also be placed in the GlobalVariables.ErrorMap. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo -
Parameters:
  apcRule - true if rule passes



validateApcRules
public boolean validateApcRules(PersistableBusinessObject bo)(Code)
This method applies all rules against the given BusinessObject as defined in the MaintenanceDocument.xml file. Appropriate errors will also be placed in the GlobalVariables.ErrorMap. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - true if rule passes



validateAttributeFormat
public void validateAttributeFormat(String entryName, String attributeName, String attributeValue, String errorKey)(Code)
Validates an attribute of a given class for proper min, max length, syntax, and required.
Parameters:
  entryName - - name of the dd entry
Parameters:
  attributeName - - name of attribute in the bo class
Parameters:
  attributeValue - - current value to validate
Parameters:
  errorKey - - key to place to errors under



validateAttributeRequired
public void validateAttributeRequired(String entryName, String attributeName, Object attributeValue, Boolean forMaintenance, String errorKey)(Code)
Validates an attribute of a given class for required check.
Parameters:
  entryName - - name of the dd entry
Parameters:
  attributeName - - name of attribute in the bo class
Parameters:
  attributeValue - - current value to validate
Parameters:
  errorKey - - key to place to errors under



validateBusinessObject
public void validateBusinessObject(PersistableBusinessObject businessObject)(Code)
Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they are encountered.
Parameters:
  businessObject - - business object to validate



validateBusinessObject
public void validateBusinessObject(PersistableBusinessObject businessObject, boolean validateRequired)(Code)
Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they are encountered.
Parameters:
  businessObject - - business object to validate
Parameters:
  validateRequired - - whether to execute required field checks



validateBusinessObjectsRecursively
public void validateBusinessObjectsRecursively(PersistableBusinessObject businessObject, int depth)(Code)
Validates the business object against the dictionary, uses reflection to get any child business objects, and recursively calls back. Adds errors to the map as they are encountered.
Parameters:
  businessObject - - business object to validate
Parameters:
  depth - - Specify how deep the recrusion should go (0 based). If a negative number is supplied, it's infinite.



validateDefaultExistenceChecks
public boolean validateDefaultExistenceChecks(PersistableBusinessObject bo)(Code)
This method does an existence check against all references of a BusinessObject as defined in the MaintenanceDocument.xml file for that business object. Appropriate errors will also be placed in the GlobalVariables.ErrorMap. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - - BusinessObject instance that should be tested true if all passed existence tests, false if any failed



validateDocument
public void validateDocument(Document document)(Code)
Validates the contents of a document (i.e. attributes within a document) against the data dictionary.
Parameters:
  document - - document to validate



validateDocumentAndUpdatableReferencesRecursively
public void validateDocumentAndUpdatableReferencesRecursively(Document document, int maxDepth, boolean validateRequired)(Code)
Validates the contents of a document and recursively validates any of its updatable references
Parameters:
  document - the document
Parameters:
  maxDepth - the maximum numbers of levels to recurse
Parameters:
  validateRequired - whether to validate whether a field is required and is currently blank



validateDocumentAttribute
public void validateDocumentAttribute(Document document, String attributeName, String errorPrefix)(Code)
Validates the specified attribute of the given document against the data dictionary.
Parameters:
  document -
Parameters:
  attributeName -
Parameters:
  errorPrefix -



validateDocumentRecursively
public void validateDocumentRecursively(Document document, int depth)(Code)
Validates the contents of a document (i.e. attributes within a document) against the data dictionary. Recursively checks business objects of the document.
Parameters:
  document - - document to validate
Parameters:
  depth - - Specify how deep the recrusion should go (0 based). If a negative number is supplied, it's infinite.DictionaryValidationService.validateDocumentAndUpdatableReferencesRecursively(Document,int,boolean)



validateReferenceExists
public boolean validateReferenceExists(PersistableBusinessObject bo, ReferenceDefinition reference)(Code)
This method examines the populated BusinessObject bo instance passed in for a member named by the referenceName. If this member exists, and if this member is a descendent of BusinessObject, then an existence check proceeds. First the foreign keys for this reference are gathered, and then examined to see if they have values. If they do not have values, the method ends with a true return value. If they all have values, then an object with those primary keys is retrieve from the database. If one is retrieve, then the reference exists, and True is returned. Otherwise, false is returned. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - - The bo whose reference is being tested.
Parameters:
  reference - - The ReferenceDefinition to be existence tested. True if no exceptions occur and the object exists in the db, false otherwise.



validateReferenceExists
public boolean validateReferenceExists(PersistableBusinessObject bo, String referenceName)(Code)
This method examines the populated BusinessObject bo instance passed in for a member named by the referenceName. If this member exists, and if this member is a descendent of BusinessObject, then an existence check proceeds. First the foreign keys for this reference are gathered, and then examined to see if they have values. If they do not have values, the method ends with a true return value. If they all have values, then an object with those primary keys is retrieve from the database. If one is retrieve, then the reference exists, and True is returned. Otherwise, false is returned. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - - The bo whose reference is being tested.
Parameters:
  referenceName - - The name of the member to be existence tested. True if no exceptions occur and the object exists in the db, false otherwise.



validateReferenceExistsAndIsActive
public boolean validateReferenceExistsAndIsActive(PersistableBusinessObject bo, ReferenceDefinition reference)(Code)
This method intelligently tests the designated reference on the bo for both existence and active status, where appropriate. It will not test anything if the foreign-key fields for the given reference arent filled out with values, and it will not test active status if the reference doesnt exist. Further, it will only test active status where the correct flag is set. On failures of either sort, it will put the relevant errors into the GlobalVariables errorMap, and return a false. If there are no failures, or nothing can be tested because the foreign-key fields arent fully filled out, it will return true and add no errors. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - - the BusinessObject instance to be tested.
Parameters:
  reference - - the ReferenceDefinition to control the nature of the testing. true or false as per the criteria above



validateReferenceExistsAndIsActive
public boolean validateReferenceExistsAndIsActive(PersistableBusinessObject bo, String referenceName, String activeIndicatorAttributeName, boolean activeIndicatorReversed, boolean activeIndicatorSet, String attributeToHighlightOnFail, String displayFieldName)(Code)
This method intelligently tests the designated reference on the bo for both existence and active status, where appropriate. It will not test anything if the foreign-key fields for the given reference arent filled out with values, and it will not test active status if the reference doesnt exist. Note that it will not fail or raise any error if all of the foreign-keys are filled with a value. If this needs to be tested (ie, the 'if any field is filled, then all must be filled' rule), you'll have to do that separately. Further, it will only test active status where the correct flag is set. On failures of either sort, it will put the relevant errors into the GlobalVariables errorMap, and return a false. If there are no failures, or nothing can be tested because the foreign-key fields arent fully filled out, it will return true and add no errors. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo - - the BusinessObject instance to be tested.
Parameters:
  referenceName - - the member name on the bo to be tested for existence and active-state
Parameters:
  activeIndicatorAttributeName - - the name on the class of the referenceName member to indicate active status
Parameters:
  activeIndicatorReversed - - a flag to indicate if the flag means closed or inactive, rather than active
Parameters:
  activeIndicatorSet - - a flag to control whether active state testing happens at all
Parameters:
  attributeToHighlightOnFail - - the fieldName to highlight with the error message on a failure
Parameters:
  displayFieldName - - the human-readable display name of the failed field, to go in the error message true or false as per the criteria above



validateReferenceIsActive
public boolean validateReferenceIsActive(PersistableBusinessObject bo, ReferenceDefinition reference)(Code)
This method retrieves the reference from the DB, and then tests whether the object is active. It will return false if there is no activeIndicator field on this object, if the object doesnt exist in the DB, if the field doesnt exist or cannot be cast as a boolean, if the field value is null, or if the field value is false. It will only return true if the reference bo is present, the field is present, it is a boolean and non-null, and the value is true. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo -
Parameters:
  reference -



validateReferenceIsActive
public boolean validateReferenceIsActive(PersistableBusinessObject bo, String referenceName, String activeIndicatorAttributeName, boolean activeIndicatorReversed)(Code)
This method retrieves the reference from the DB, and then tests whether the object is active. It will return false if there is no activeIndicator field on this object, if the object doesnt exist in the DB, if the field doesnt exist or cannot be cast as a boolean, if the field value is null, or if the field value is false. It will only return true if the reference bo is present, the field is present, it is a boolean and non-null, and the value is true. This method assumes that you already have the errorPath set exactly as desired, and adds new errors to the errorMap with no prefix, other than what has already been pushed onto the errorMap.
Parameters:
  bo -
Parameters:
  referenceName -
Parameters:
  activeIndicatorAttributeName -
Parameters:
  activeIndicatorReversed -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.