psdi.app.contract.lease

Class LeaseViewStatusHandler

  • All Implemented Interfaces:
    MboConstants


    public class LeaseViewStatusHandler
    extends CommonContractStatusHandler
    Handles all the status changes for a lease/rental contract view object.This is a helper class.
    • Constructor Detail

      • LeaseViewStatusHandler

        public LeaseViewStatusHandler(StatefulMbo sm)
        Constructor
    • Method Detail

      • approve

        public void approve(java.lang.String desiredStatus,
                            java.util.Date approveDate)
                     throws MXException,
                            java.rmi.RemoteException
        Check for required fields if the payment schedule flag for this lease contract is true.
        Overrides:
        approve in class CommonContractStatusHandler
        Throws:
        MXException
        java.rmi.RemoteException
      • cancel

        public void cancel(java.lang.String desiredStatus,
                           java.util.Date cancelDate)
                    throws MXException,
                           java.rmi.RemoteException
        Warn the user if there are payments generated for this contract. The user will have the option of continuing or stopping the process.
        Overrides:
        cancel in class CommonContractStatusHandler
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        setLineStatus
      • close

        public void close(java.lang.String desiredStatus,
                          java.util.Date closeDate)
                   throws MXException,
                          java.rmi.RemoteException
        Warn the user if there are payments generated for this contract. The user will have the option of continuing or stopping the process.
        Overrides:
        close in class CommonContractStatusHandler
        Throws:
        MXException
        java.rmi.RemoteException