psdi.app.asset.virtual

Class ModDowntimeHist

    • Constructor Detail

      • ModDowntimeHist

        public ModDowntimeHist(MboSet ms)
                        throws java.rmi.RemoteException
        Construct the ModDowntimeHistMbo.
        Parameters:
        ms - MboSet
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Set fields to readonly and required. Check for the MANDWNUPD sigoption, if present, fields will be editable, else fields are all readonly.
        Overrides:
        init in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setEndAssetStatus

        public void setEndAssetStatus(MboRemote assetStatus)
                               throws MXException,
                                      java.rmi.RemoteException
        Set the values associated with the end AssetStatus record and store the Mbo.
        Specified by:
        setEndAssetStatus in interface ModDowntimeHistRemote
        Parameters:
        assetStatus - The assetStatus record to store as the endAssetStatus object.
        Throws:
        MXException
        java.rmi.RemoteException
      • setStartAssetStatus

        public void setStartAssetStatus(MboRemote assetStatus)
                                 throws MXException,
                                        java.rmi.RemoteException
        Set the values associated with the start AssetStatus record and store the Mbo.
        Specified by:
        setStartAssetStatus in interface ModDowntimeHistRemote
        Parameters:
        assetStatus - The assetStatus record to be stored as the startAssetStatus object.
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete the start and end assetStatus records associated with this record, then remove this record from memory.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - 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:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Undelete this non-persistent object and the start and end assetStatus records associated with it.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException