psdi.app.item.virtual

Class ItemChangeStatusSet

    • Constructor Detail

      • ItemChangeStatusSet

        public ItemChangeStatusSet(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 ItemChangeStatus object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The ItemChangeStatusSet.
        Returns:
        an ItemChangeStatusMbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • execute

        public void execute(MboRemote mbo)
                     throws MXException,
                            java.rmi.RemoteException
        Description copied from class: ChangeStatusSet
        Changes Status of the set of StatefulMbos that the Mbo passed in is a member of. Done this way to avoid changing the external interface. If the set has selected Mbos, only the selected Mbos will have their status changed. Otherwise all members of the MboSet will have their status changed. All warnings and exceptions are returned to the original set, however this set will be reset, although the set won't be used directly. Mbo selections will be lost.
        Specified by:
        execute in interface NonPersistentMboSetRemote
        Overrides:
        execute in class ChangeStatusSet
        Parameters:
        mbo - The mbo in the set to change the status of.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        NonPersistentMboSet.execute(MboRemote)
      • getMboIntoSet

        protected MboSetRemote getMboIntoSet(MboRemote mbo)
                                      throws MXException,
                                             java.rmi.RemoteException
        This method returns the select Mbo in a set by itself. 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 changeItemSet = getMboServer().getMboSet("Item", getUserInfo()) ; SqlFormat sqf = new SqlFormat(mbo, "itemnum = :itemnum") ; changeItemSet.setWhere(sqf.format()) ; return changeItemSet ;
        Specified by:
        getMboIntoSet in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException
      • changeMboStatus

        protected void changeMboStatus(MboRemote item,
                                       MboRemote param)
                                throws MXException,
                                       java.rmi.RemoteException
        Description copied from class: ChangeStatusSet
        This method is used to change a Mbo's status with the parameters given. This method should be overridden when the change status method does not take the standard parameter attributes "status", "AsOfDate", and "memo" or the Mbo changing status is not a StatefulMboRemote.
        Overrides:
        changeMboStatus in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException