psdi.common.commtmplt.virtual

Class CommTmpltChangeStatusSet

    • Constructor Detail

      • CommTmpltChangeStatusSet

        public CommTmpltChangeStatusSet(MboServerInterface ms)
                                 throws MXException,
                                        java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an CommTmpltChangeStatus object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The CommTmpltChangeStatusSet.
        Returns:
        an CommTmpltChangeStatus Mbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboIntoSet

        protected MboSetRemote getMboIntoSet(MboRemote mbo)
                                      throws MXException,
                                             java.rmi.RemoteException
        This method returns the select Mbo in a set by itself. This should be a framework method but for now it's not. The MboSet should not be linked to any other set as it will be used to change status and will be saved. An Example:
        MboSetRemote changeWOSet = getMboServer().getMboSet("WORKORDER", getUserInfo()) ; SqlFormat sqf = new SqlFormat(mbo, "wonum = :wonum") ; changeWOSet.setWhere(sqf.format()) ; return changeWOSet ;
        Specified by:
        getMboIntoSet in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException
      • changeMboStatus

        protected void changeMboStatus(MboRemote commTemplate,
                                       MboRemote param)
                                throws MXException,
                                       java.rmi.RemoteException
        Change the status of a communication template.
        Overrides:
        changeMboStatus in class ChangeStatusSet
        Parameters:
        commTemplate - The communication template mbo which status is to be changed
        param - The non-persistent object COMMTMPLTCHGSTAT which holds the new status and status date.
        Throws:
        MXException
        java.rmi.RemoteException