psdi.app.workorder

Class PriCalcSet

    • Constructor Detail

      • PriCalcSet

        public PriCalcSet(MboServerInterface ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the set of priority calculations.
        Parameters:
        ms - The MboServerInterface used to access internals of the MXServer.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create a priority calculation.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - the PriCalc MboSet.
        Returns:
        a priority calculation Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • addRowsForNewSite

        public void addRowsForNewSite(java.lang.String siteID,
                                      java.lang.String orgID)
                               throws MXException,
                                      java.rmi.RemoteException
        Adds a new set of formula rows to the PriCalc table each time a new site is added. The approach is to select the set of rows for one and *only* one of the existing sites -- it doesn't matter which one -- and then copy the findex, formula, and selected fields to a new set of rows for the new site and its org. As of this writing (MXES 6.0.03) there are six rows for each site, as there have been back at least to 5.0 .
        Specified by:
        addRowsForNewSite in interface PriCalcSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • addDefaultRowsForSite

        public void addDefaultRowsForSite(java.lang.String siteID,
                                          java.lang.String orgID)
                                   throws MXException,
                                          java.rmi.RemoteException
        It became apparent that since Maximo 6.x is shipped without any sites, the PriCalc table is also empty by default. Thus, there are no existing rows to serve as templates for new ones. This method deals with that case. The actual default values are the ones that have always been used -- the users may alter them later if they wish.
        Specified by:
        addDefaultRowsForSite in interface PriCalcSetRemote
        Throws:
        MXException
        java.rmi.RemoteException