psdi.app.pm

Class PMSet

    • Constructor Detail

    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generate a new PM object
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - MboSet
        Returns:
        the new PM object
        Throws:
        MXException
        java.rmi.RemoteException
      • canGenerateWork

        public void canGenerateWork()
                             throws java.rmi.RemoteException,
                                    MXException
        Determines whether work orders can be generated or not. Work orders will not be generated if the PM Set has unsaved modifications.
        Specified by:
        canGenerateWork in interface PMSetRemote
        Throws:
        MXException - If there are unsaved modifications to the PM, then MXApplicationException("PM","SetUnsavedNoGen")
        java.rmi.RemoteException
        See Also:
        PMSet.canGenerateWork()
      • generateWork

        public void generateWork(boolean useFreqCrit,
                                 int leadTime)
                          throws MXException,
                                 java.rmi.RemoteException
        Method that generates work orders for every PM in the set.
        Specified by:
        generateWork in interface PMSetRemote
        Parameters:
        userFreqCrit - Flag whether to use frequency criteria or not to figure out when to generate work orders.
        leadTime - The number of days ahead to generate work orders for.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PM.generateWork(boolean, int, boolean)
      • generateWork

        public void generateWork(boolean useFreqCrit,
                                 int leadTime,
                                 boolean isCalledFromCrontask)
                          throws MXException,
                                 java.rmi.RemoteException
        Method that generates work orders for every PM in the set.
        Specified by:
        generateWork in interface PMSetRemote
        Parameters:
        userFreqCrit - Flag whether to use frequency criteria or not to figure out when to generate work orders.
        leadTime - The number of days ahead to generate work orders for.
        isCalledFromCrontask - If this method is called from a CronTask
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PM.generateWork(boolean, int, boolean)
      • onlyTopLevels

        public void onlyTopLevels()
                           throws MXException,
                                  java.rmi.RemoteException
        Takes the current where clause of the set and limits it further to PM's which aren't sub-work orders. The set's where clause is changed and the set is reset.
        Specified by:
        onlyTopLevels in interface PMSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PMSetRemote.onlyTopLevels()
      • canAdd

        public void canAdd()
                    throws MXException
        Determines whether PM's can be added to this Set or not. only existing PM's may be added to a set which is owned by a PM which may not own other PMs.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXException
      • checkWFEnabled

        public boolean checkWFEnabled()
                               throws MXException,
                                      java.rmi.RemoteException
        This method checks whether to start the workflow process after the generation of workorder from PM depending on the maxvar 'WFONPMGENERATION'. This method returns true, if workflow process needs to be started. Otherwise returns false.
        Returns:
        isEnabled - true Workflow process should be started after workorder generation - false Workflow process should not to be started after workorder generation
        Throws:
        MXException - If workflow process is not enabled, then MXApplicationException("MASTERPM", "WFMessage");
        java.rmi.RemoteException
      • reset

        public void reset()
                   throws MXException,
                          java.rmi.RemoteException
        reset method is overriden to set back the flags related to WorkFlow to the default values.
        Specified by:
        reset in interface MboSetRemote
        Overrides:
        reset in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        MboSet.save()
      • generateForecast

        public void generateForecast(int genDuration)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates forecast for every PM in the set.
        Specified by:
        generateForecast in interface PMSetRemote
        Parameters:
        genDuration - The number of days ahead to generate forecast for.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.skd.app.pm.SKDPMSet#generateForecast()
      • deleteForecast

        public void deleteForecast()
                            throws MXException,
                                   java.rmi.RemoteException
        Specified by:
        deleteForecast in interface PMSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.skd.app.pm.SKDPMSet#deleteForecast()
      • lockUnlockForecast

        public void lockUnlockForecast(boolean lockForecast)
                                throws MXException,
                                       java.rmi.RemoteException
        Specified by:
        lockUnlockForecast in interface PMSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.skd.app.pm.SKDPMSet#lockUnlockForecast(boolean lockForecast)
      • getTopPMFromVector

        public PM getTopPMFromVector(MboRemote oneTop)
                              throws MXException,
                                     java.rmi.RemoteException
        IJ01049:compare the top PM in the vector. If it is found for pmnum and siteid, then use it
        Throws:
        MXException
        java.rmi.RemoteException
      • getPMsChangeStatusVector

        public java.util.Vector getPMsChangeStatusVector()
                                                  throws MXException,
                                                         java.rmi.RemoteException
        IJ01049: vector stores pms in the pmSet via relationship "$assetPMs"
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • resetEsigCounter

        public void resetEsigCounter()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setEsigSinged

        public void setEsigSinged(boolean signed)
                           throws MXException,
                                  java.rmi.RemoteException
        IJ28446: if the change staus code is executed, then user has signed esig window.
        Parameters:
        set -
        Throws:
        MXException
        java.rmi.RemoteException