Interface MaintenanceDocumentRule

All Known Implementing Classes:
MaintenanceDocumentRuleBase

@Deprecated public interface MaintenanceDocumentRule
Deprecated.
Use MaintenanceDocumentRule.
Rule event interface for implementing business rules against a MaintenanceDocument
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    processApproveDocument(org.kuali.rice.krad.rules.rule.event.ApproveDocumentEvent approveEvent)
    Deprecated.
    Runs all business rules needed prior to approving.
    boolean
    processRouteDocument(org.kuali.rice.krad.document.Document document)
    Deprecated.
    Runs all business rules needed prior to routing.
    boolean
    processSaveDocument(org.kuali.rice.krad.document.Document document)
    Deprecated.
    Runs all business rules needed prior to saving.
    void
    Deprecated.
    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.
    void
    Deprecated.
    Should always be overridden if a subclass is created.
  • Method Details

    • processSaveDocument

      boolean processSaveDocument(org.kuali.rice.krad.document.Document document)
      Deprecated.
      Runs all business rules needed prior to saving. This includes both common rules for all maintenance documents, plus class-specific business rules. 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:
      • SaveDocumentRule.processSaveDocument(org.kuali.rice.krad.document.Document)
    • processRouteDocument

      boolean processRouteDocument(org.kuali.rice.krad.document.Document document)
      Deprecated.
      Runs all business rules needed prior to routing. This includes both common rules for all maintenance documents, plus class-specific business rules. Will return false if any business rule fails, or if the document is in an invalid state, and not routable (see isDocumentValidForRouting()).
      See Also:
      • RouteDocumentRule.processRouteDocument(org.kuali.rice.krad.document.Document)
    • processApproveDocument

      boolean processApproveDocument(org.kuali.rice.krad.rules.rule.event.ApproveDocumentEvent approveEvent)
      Deprecated.
      Runs all business rules needed prior to approving. This includes both common rules for all maintenance documents, plus class-specific business rules. Will return false if any business rule fails, or if the document is in an invalid state, and not approvable (see isDocumentValidForApproving()).
      See Also:
      • ApproveDocumentRule.processApproveDocument(org.kuali.rice.krad.rules.rule.event.ApproveDocumentEvent)
    • setupBaseConvenienceObjects

      void setupBaseConvenienceObjects(MaintenanceDocument document)
      Deprecated.
      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

      void setupConvenienceObjects()
      Deprecated.
      Should always be overridden if a subclass is created. The goal for this is to cast the oldBo and newBo into the correct types of the subclass.