psdi.app.contract.purch

Class PurchViewStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class PurchViewStatusHandler
    extends CommonContractStatusHandler
    Handles all the status changes for a purchase contract view object.This is a helper class and extends from the CommonContractStatusHandler.
    • Constructor Detail

      • PurchViewStatusHandler

        public PurchViewStatusHandler(StatefulMbo sm)
        Constructor
    • Method Detail

      • approve

        public void approve(java.lang.String desiredStatus,
                            java.util.Date date)
                     throws MXException,
                            java.rmi.RemoteException
        Description copied from class: CommonContractStatusHandler
        Validates certain conditions before approving the contract.
        • Check to see if the current date falls within the valid dates for the contract.
        • Check the approval limit of the person approving the contract. If it is more that the specified approval limit an error is thrown.
        • If the status of the current contract is Pending revision, locate the previous revision of this contract and set the status of the previous revision of this contract to revised.
        Overrides:
        approve in class CommonContractStatusHandler
        Throws:
        MXException
        java.rmi.RemoteException