psdi.app.workorder.virtual

Class ShowActualMboSet

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

      • ShowActualMboSet

        public ShowActualMboSet(MboRemote owner,
                                java.lang.String name,
                                java.lang.String relationship)
                         throws java.rmi.RemoteException
        Constructor.
        Parameters:
        relationship - "LABTRANS", "MATUSETRANS", "TOOLTRANS"
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • 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
      • setCurrentWorkOrder

        public void setCurrentWorkOrder(MboRemote mbo)
                                 throws MXException,
                                        java.rmi.RemoteException
        This method provides a new current work order for which we want to display actual mbo for. The set will change to contain mbo records for this work order and it's task work order children.
        Parameters:
        mbo - The new current work order.
        Throws:
        MXException
        java.rmi.RemoteException
      • fetchMbos

        public void fetchMbos(int toPosition)
                       throws MXException,
                              java.rmi.RemoteException
        Mbo supplier method checks for any order by defined. If there is an order by clause, all Mbos are read in and sorted in memory.
        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. First reads the mbo from the current work order then it get's the current work order's CHILDREN set and read the mbo from each task work order child.
        Throws:
        MXException
        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
      • 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)
      • addForFauxSet

        protected Mbo addForFauxSet(MboSet realSet)
                             throws java.rmi.RemoteException,
                                    MXException
        Create for issue 08-23208, add with jspdefaults defined against the FauxMboSet
        Parameters:
        realSet - where to actually add the Mbo
        Returns:
        The new Mbo
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        similar method
      • 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
      • canAdd

        public void canAdd()
                    throws MXException
        Since additions to this set will occur in the parent's set, check that set to see if can add.
        Throws:
        MXException
      • addedMbo

        public void addedMbo(MboRemote newMbo,
                             int position)
                      throws MXException,
                             java.rmi.RemoteException
        A mbo has been added to the WO's related mboset. Add the mbo to this set.
        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. This method listens to WOSets - children set of the current WO
        Specified by:
        modifiedMbo in interface MboSetListener
        Parameters:
        modifiedMbo - The recently modified Mbo.
        Throws:
        MXException
        java.rmi.RemoteException