psdi.iface.app.interror

Class MaxIntError

    • Constructor Detail

      • MaxIntError

        public MaxIntError(MboSet ms)
                    throws MXException,
                           java.rmi.RemoteException
        Construct the MaxIntError object.
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        This method is called by the framework before delete.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        This is called whenever a change is made to the attributes of maxinterror. When any field realated to the object is changed, changedate and changeby is updated.
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo,
                                 long accessModifier)
                          throws MXException,
                                 java.rmi.RemoteException
        Calls the changeStatus method with an accessModifier of NONE.
        Specified by:
        changeStatus in interface StatefulMboRemote
        Overrides:
        changeStatus in class StatefulMbo
        Parameters:
        status - The new desired status. This is the translated status (that is, the status code as it would have been entered by a user, or valuelist.value), not the internal status value (valuelist.maxvalue).
        date - The effective date of the new status ( java.util.Date).
        memo - A string briefly describing the circumstances of the change. The memo can be null.
        accessModifier - A value of NOACCESSCHECK will cause the method not to call canChangeStatus. Callers using this flag are responsible for ensuring that they are attempting a valid status change.
        Throws:
        MXException - Thrown if there is a problem, or the status cannot be changed, as determined by canChangeStatus(String).
        java.rmi.RemoteException
        See Also:
        MaxIntError.changeStatus(String,java.util.Date,String,long)
      • getStatusHistory

        protected MboSetRemote getStatusHistory()
                                         throws MXException,
                                                java.rmi.RemoteException
        Return the ierrorstatusdummy object. Required for statefullness.
        Specified by:
        getStatusHistory in class StatefulMbo
        Returns:
        The set of ASSETSTATUS records
        Throws:
        MXException
        java.rmi.RemoteException
      • getStatusHandler

        protected StatusHandler getStatusHandler()
        Return a status handler with the help of which the asset status changes can be done.
        Specified by:
        getStatusHandler in class StatefulMbo
      • markForDelete

        public boolean markForDelete(java.lang.String state)
                              throws MXException,
                                     java.rmi.RemoteException
        Set DELETEFLAG to mark for delete.
        Specified by:
        markForDelete in interface MaxIntErrorRemote
        Parameters:
        state - Deelete state
        Throws:
        MXException
        java.rmi.RemoteException
      • canContinue

        public void canContinue()
                         throws MXException,
                                java.rmi.RemoteException
        Can continue? This method will find out can status be changed.
        Specified by:
        canContinue in interface MaxIntErrorRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Overwitten for MaxIntError MBO. Undelete any data in MAXINTERRORMSG and error file.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • writeToQueue

        public void writeToQueue()
                          throws MXException,
                                 java.rmi.RemoteException
        Write recovered message back to queue.
        Throws:
        MXException
        java.rmi.RemoteException
      • getJMSHeader

        public java.util.Map getJMSHeader()
                                   throws MXException,
                                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException