psdi.app.common.virtual

Class ChangeStatusSet

    • Field Detail

      • changeStatusButtonSigOption

        public java.lang.String changeStatusButtonSigOption
    • Constructor Detail

      • ChangeStatusSet

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

      • execute

        public void execute(MboRemote mbo)
                     throws MXException,
                            java.rmi.RemoteException
        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 NonPersistentMboSet
        Parameters:
        mbo - The mbo in the set to change the status of.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        NonPersistentMboSet.execute(MboRemote)
      • changeStatusOnEnumeration

        protected void changeStatusOnEnumeration(java.util.Enumeration enumit,
                                                 Mbo param)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatusOnSet

        protected void changeStatusOnSet(MboSetRemote csSet,
                                         Mbo param)
                                  throws MXException,
                                         java.rmi.RemoteException
        Changes the status of all members of a set. Note that if doing a getMbo(int) on the set causes an exception, the exception is simply passed up the call chain.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboIntoSet

        protected abstract 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 ; Make sure that if the query to the database happens within the execution of the set, make sure you set the appname to the set to be returned before the query happens.
        Throws:
        MXException
        java.rmi.RemoteException
      • changeMboStatus

        protected void changeMboStatus(MboRemote changeMbo,
                                       MboRemote param)
                                throws MXException,
                                       java.rmi.RemoteException
        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.
        Throws:
        MXException
        java.rmi.RemoteException