psdi.app.pm

Class PMSequence

  • All Implemented Interfaces:
    java.rmi.Remote, PMSequenceRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class PMSequence
    extends Mbo
    implements PMSequenceRemote
    MBO object to represent PMSequence. See the PM package description for details.

    This is a site level object.

    The key attributes for this object are SiteId, Pmnum, and Interval.

    The attributes in this object are as follows:

    Attribute NameDescription
    IntervalIntervalIndicates the period or index at which the jobplan will be used.
    JpnumThe jobplan which will be assigned to the work oder generated by the PM.
    OrgIdIdentifier of the organization for the PMSequence.
    PMNumIdentifier for the Preventive Maintenance record.
    SiteIdIdentifier of the site for the PMSequence.

    • Constructor Detail

      • PMSequence

        public PMSequence(MboSet ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the PMSequence object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the Pmsequence object
        After insert, attributes pmnum, jpnum and interval are read-only for any PMSequence record.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new pmsequence(job sequence) When a new jobplan sequnece is added,the pmnum is copied from the PM which owns this object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo. This method takes the MboValueInfo as its parameter to see if this field needs to be copied or skipped.If this field does not need to be copied, it returns true. The following fields donot get copied from the source PMSequence to the target PMSequence.
        1. pmnum
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long modifier)
                    throws java.rmi.RemoteException,
                           MXException
        override delete. If the PMSequence chosen for delete is the jpnum on the owner PM, clear of the JPNUM field on the ownerPM after deleting the pmsequence record and copy the next jobplan in sequence for use.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        modifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        Mbo.delete(long)
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Method that checks whether a PMSequence can be deleted or not.
        Throws interactive message in case of UI to delete the PM Hierarchy forecast if the job plan sequence record is deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • jpSequenceCheck

        protected void jpSequenceCheck()
                                throws MXException,
                                       java.rmi.RemoteException
        Check job plan sequence records on PM to see if a sequence of one exists.
        Throws:
        MXException
        java.rmi.RemoteException