| org.kuali.core.maintenance.rules.MaintenanceDocumentRule
All known Subclasses: org.kuali.core.maintenance.rules.MaintenanceDocumentRuleBase,
MaintenanceDocumentRule | public interface MaintenanceDocumentRule (Code) | | |
processSaveDocument | abstract public boolean processSaveDocument(Document document)(Code) | | Runs all business rules needed prior to saving. This includes both common rules for all maintenance 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) |
setupBaseConvenienceObjects | public void setupBaseConvenienceObjects(MaintenanceDocument document)(Code) | | This method sets the convenience objects like newAccount and oldAccount, so you have short and easy handles to the new and
old objects contained in the maintenance document.
It also calls the BusinessObjectBase.refresh(), which will attempt to load all sub-objects from the DB by their primary keys,
if available.
Parameters: document - - the maintenanceDocument being evaluated |
setupConvenienceObjects | public void setupConvenienceObjects()(Code) | | This method should always be overriden if a subclass is created.
The goal for this is to cast the oldBo and newBo into the correct types of the subclass.
|
|
|