psdi.mbo

Class StatusHandler

  • java.lang.Object
    • psdi.mbo.StatusHandler
    • Constructor Detail

      • StatusHandler

        public StatusHandler(StatefulMbo sm)
        Constructor
    • Method Detail

      • changeStatus

        public void changeStatus(java.lang.String currentStatus,
                                 java.lang.String desiredStatus,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Change the status from the specified state to a desired state It is up to the programmer to throw and exception from this rountine if the specified status does not exist !
        Throws:
        MXException
        java.rmi.RemoteException
      • canChangeStatus

        public void canChangeStatus(java.lang.String currentStatus,
                                    java.lang.String desiredStatus,
                                    long accessModifier)
                             throws MXException,
                                    java.rmi.RemoteException
        Can a certain status change be performed ?
        Throws:
        MXException
        java.rmi.RemoteException
      • updateMboForStatus

        public void updateMboForStatus(java.lang.String status)
                                throws MXException,
                                       java.rmi.RemoteException
        Called to set the state of the Mbo for the specified status. Example would be make the Work Plan read only for an approved Work Order. BE CAREFUL ABOUT DOING EXPENSIVE OPERATIONS IN THIS METHOD !
        Throws:
        MXException
        java.rmi.RemoteException
      • preStatusChange

        public void preStatusChange(java.lang.String currentStatus,
                                    java.lang.String status,
                                    java.util.Date asOfDate,
                                    java.lang.String memo)
                             throws MXException,
                                    java.rmi.RemoteException
        Object can over override this method to process pre status change logic. called by statefulmbo
        Throws:
        MXException
        java.rmi.RemoteException
      • postStatusChange

        public void postStatusChange(java.lang.String currentStatus,
                                     java.lang.String status,
                                     java.util.Date asOfDate,
                                     java.lang.String memo)
                              throws MXException,
                                     java.rmi.RemoteException
        Object can over override this method to process post status change logic. called by statefulmbo
        Throws:
        MXException
        java.rmi.RemoteException
      • statusToOptionName

        public java.lang.String statusToOptionName(java.lang.String status)
        Return the sigoption associated with the status. Call the app specific getOptionName() first, if that fails assume the option name is the same as the internal status.
        Parameters:
        status - The external status value
        Returns: