| java.lang.Object org.kuali.core.rules.DocumentRuleBase
All known Subclasses: org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase, org.kuali.module.kra.budget.rules.ResearchDocumentRuleBase, org.kuali.core.rules.LedgerPostingDocumentRuleBase, org.kuali.core.rules.TransactionalDocumentRuleBase,
getMaxDictionaryValidationDepth | public int getMaxDictionaryValidationDepth()(Code) | | Gets the maximum number of levels the data-dictionary based validation will recurse for the document
|
isAddHocRoutePersonValid | public boolean isAddHocRoutePersonValid(Document document, AdHocRoutePerson person)(Code) | | Verifies that the adHocRoutePerson's fields are valid - it does required and format checks.
Parameters: person - boolean True if valid, false otherwise. |
isAddHocRouteWorkgroupValid | public boolean isAddHocRouteWorkgroupValid(AdHocRouteWorkgroup workgroup)(Code) | | Verifies that the adHocRouteWorkgroup's fields are valid - it does required and format checks.
Parameters: workgroup - boolean True if valid, false otherwise. |
isDocumentAttributesValid | public boolean isDocumentAttributesValid(Document document, boolean validateRequired)(Code) | | Validates the document attributes against the data dictionary.
Parameters: document - Parameters: validateRequired - if true, then an error will be retruned if a DD required field is empty. if false, no required checking is done True if the document attributes are valid, false otherwise. |
isDocumentOverviewValid | public boolean isDocumentOverviewValid(Document document)(Code) | | Verifies that the document's overview fields are valid - it does required and format checks.
Parameters: document - boolean True if the document description is valid, false otherwise. |
isNoteValid | public boolean isNoteValid(Note note)(Code) | | Verifies that the note's fields are valid - it does required and format checks.
Parameters: note - boolean True if the document description is valid, false otherwise. |
processAddNote | public boolean processAddNote(Document document, Note note)(Code) | | Runs all business rules needed prior to adding a document note.
This method will return false if any business rule fails.
See Also: org.kuali.core.rule.AddDocumentNoteRule.processAddDocumentNote(org.kuali.core.document.Documentorg.kuali.core.document.DocumentNote) |
processCustomAddAdHocRoutePersonBusinessRules | protected boolean processCustomAddAdHocRoutePersonBusinessRules(Document document, AdHocRoutePerson person)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "add ad hoc route person" event.
Parameters: document - Parameters: person - boolean True if the rules checks passed, false otherwise. |
processCustomAddAdHocRouteWorkgroupBusinessRules | protected boolean processCustomAddAdHocRouteWorkgroupBusinessRules(Document document, AdHocRouteWorkgroup workgroup)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "add ad hoc route workgroup" event.
Parameters: document - Parameters: workgroup - boolean True if the rules checks passed, false otherwise. |
processCustomAddNoteBusinessRules | protected boolean processCustomAddNoteBusinessRules(Document document, Note note)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "add document note" event.
Parameters: document - Parameters: note - boolean True if the rules checks passed, false otherwise. |
processCustomApproveDocumentBusinessRules | protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "approve document" event.
Parameters: document - boolean True if the rules checks passed, false otherwise. |
processCustomRouteDocumentBusinessRules | protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "route document" event.
Parameters: document - boolean True if the rules checks passed, false otherwise. |
processCustomSaveDocumentBusinessRules | protected boolean processCustomSaveDocumentBusinessRules(Document document)(Code) | | This method should be overridden by children rule classes as a hook to implement document specific business rule
checks for the "save document" event.
Parameters: document - boolean True if the rules checks passed, false otherwise. |
processSaveDocument | public boolean processSaveDocument(Document document)(Code) | | Runs all business rules needed prior to saving. This includes both common rules for all documents, plus
class-specific business rules.
This method will only return false if it fails the isValidForSave() test. Otherwise, it will always return
positive regardless of the outcome of the business rules. However, any error messages resulting from the business
rules will still be populated, for display to the consumer of this service.
See Also: org.kuali.core.rule.SaveDocumentRule.processSaveDocument(org.kuali.core.document.Document) |
setMaxDictionaryValidationDepth | public void setMaxDictionaryValidationDepth(int maxDictionaryValidationDepth)(Code) | | Gets the maximum number of levels the data-dictionary based validation will recurse for the document
Parameters: maxDictionaryValidationDepth - |
|
|