psdi.iface.app.item

Class MaxItemProcess

    • Constructor Detail

      • MaxItemProcess

        public MaxItemProcess()
                       throws MXException,
                              java.rmi.RemoteException
        Constructor
        Throws:
        MXException - maximo exception
        java.rmi.RemoteException - remote exception
    • Method Detail

      • checkBusinessRules

        public int checkBusinessRules(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Overriden from base class. This validates that ITEMTYPE (if present in the xml) should be ITEM or a synonym of it. If it is Service or Tool, it throws an Exception
        Overrides:
        checkBusinessRules in class MosProcessImpl
        Parameters:
        mboSet - the mboset
        tableName - the object name
        Returns:
        PROCESS (means continue to process)
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • setAdditionalData

        public void setAdditionalData(MboSetRemote mboSet,
                                      java.lang.String tableName)
                               throws MXException,
                                      java.rmi.RemoteException
        Set additional data. For ITEM table: 1) if CAPITALIZED has changed then call changeCapitalized; 2) call setClassStructureId. For CONVERSION table, if ITEMNUM is null then set ITEMNUM from owner.
        Overrides:
        setAdditionalData in class MosProcessImpl
        Parameters:
        mboSet - the mboset
        tableName - the object name
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • changeCapitalized

        protected void changeCapitalized(ItemRemote itemMbo,
                                         boolean newStatus)
                                  throws MXException,
                                         java.rmi.RemoteException
        Call changeCapitalizedStatus on Item mbo if the capitalized flag has changed.
        Parameters:
        itemMbo - the Item Mbo
        newStatus - the new capitalized status
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • changeStatus

        public void changeStatus(MboRemote setMbo,
                                 java.lang.String stat,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Call actual status change in Item Mbo. Use NP_STATUSROLLDOWN for rolldown flag.
        Overrides:
        changeStatus in class StatefulMicSetIn
        Parameters:
        setMbo - Item Mbo to change status
        stat - new status
        memo - status change memo
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception