psdi.app.workorder.virtual

Class ShowChildrenSet

  • java.lang.Object
    • java.rmi.server.RemoteObject
      • java.rmi.server.RemoteServer
        • java.rmi.server.UnicastRemoteObject
    • Constructor Detail

      • ShowChildrenSet

        public ShowChildrenSet(MboRemote owner)
                        throws java.rmi.RemoteException
        Constructor.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • fetchMbos

        public void fetchMbos(int toPosition)
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: FauxMboSet
        This method needs to be overridden to produce the Mbos which are members of this "MboSet". This class will use this method to supply the Mbo related methods. This method should fill the mboVec member variable. If it doesn't fill the vector to the position give, it's assumed the set is closed.
        Specified by:
        fetchMbos in class FauxMboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • fetchMbosOriginal

        public void fetchMbosOriginal(int toPosition)
                               throws MXException,
                                      java.rmi.RemoteException
        Mbo supplier method.
        Throws:
        MXException
        java.rmi.RemoteException
      • getName

        public java.lang.String getName()
                                 throws java.rmi.RemoteException
        Description copied from class: FauxMboSet
        Define to give the MboSet a name. You may want to spoof a real name or define a unique name for the set.
        Specified by:
        getName in interface MboSetRemote
        Specified by:
        getName in class FauxMboSet
        Throws:
        java.rmi.RemoteException
      • addAtEnd

        public MboRemote addAtEnd(java.lang.String jpWOClassSyn)
                           throws MXException,
                                  java.rmi.RemoteException
        when child work orders are being generated using nested job plans the job plan class of the nested job plan is used for the work order's work class. This class must be provided via this method as the work order is being created in the WO object using this method.
        Parameters:
        jpWOClass - This is the synonym of the work order class to add.
        Returns:
        newly added Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        WO.createOperations( MboSetRemote operations)
      • addAtIndex

        public MboRemote addAtIndex(long accessModifier,
                                    java.lang.String newChildClass,
                                    int index)
                             throws MXException,
                                    java.rmi.RemoteException
        Adds a new Mbo with the defined woclass at the position specified.
        Parameters:
        index - Where to add the new Mbo.
        newChildClass - type of mbo to add (Activity,Release,Change, WorkOrder)
        Returns:
        The new mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • addAtIndex

        public MboRemote addAtIndex(long accessModifier,
                                    int index)
                             throws MXException,
                                    java.rmi.RemoteException
        Adds a new Mbo at the position specified.
        Specified by:
        addAtIndex in interface MboSetRemote
        Overrides:
        addAtIndex in class FauxMboSet
        Parameters:
        index - Where to add the new Mbo.
        Returns:
        The new mbo.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboSet#addAtIndex(int, long)
      • getZombie

        public MboRemote getZombie()
                            throws java.rmi.RemoteException
        This method should be overridden so that in returns a Zombie Mbo of the type of Mbo that makes up this set.
        Specified by:
        getZombie in interface MboSetRemote
        Overrides:
        getZombie in class FauxMboSet
        Throws:
        java.rmi.RemoteException
      • getOrderBy

        public java.lang.String getOrderBy()
                                    throws java.rmi.RemoteException
        Returns the current order by of the set.
        Specified by:
        getOrderBy in interface MboSetRemote
        Overrides:
        getOrderBy in class FauxMboSet
        Returns:
        The Order By clause
        Throws:
        java.rmi.RemoteException
      • addedMbo

        public void addedMbo(MboRemote newMbo,
                             int position)
                      throws MXException,
                             java.rmi.RemoteException
        A mbo has been added to the WO's CHILDREN set. Add the mbo to this set if it is not a task.
        Specified by:
        addedMbo in interface MboSetListener
        Parameters:
        newMbo - The newly created Mbo.
        position - The postion of the new Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • removedMbo

        public void removedMbo(MboRemote newMbo,
                               int position)
                        throws MXException,
                               java.rmi.RemoteException
        Reports that a Mbo has been removed from the MboSet. Any exception thrown here will be returned by the method removing the Mbo.
        Specified by:
        removedMbo in interface MboSetListener
        Parameters:
        newMbo - The recently removed Mbo.
        position - The postion of the Mbo before it was removed.
        Throws:
        MXException
        java.rmi.RemoteException
      • modifiedMbo

        public void modifiedMbo(MboRemote modifiedMbo)
                         throws MXException,
                                java.rmi.RemoteException
        Received a report that a Mbo has been modified, in a significant way. See if the Mbo in the real set should be add or removed from this set.
        Specified by:
        modifiedMbo in interface MboSetListener
        Parameters:
        modifiedMbo - The recently modified Mbo.
        Throws:
        MXException
        java.rmi.RemoteException