psdi.app.workorder

Class FailureReport

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, FailureReportRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class FailureReport
    extends Mbo
    implements FailureReportRemote
    Mbo to represent a Failure Report object for a work order or a ticket. Each FR represents a level of the failure report. See Workorder Package description.

    This is a site level object.

    There is no key attribute for this object.

    The attributes in this object are as follows:

    Attribute NameDescription
    FailureCodeIdentifier of FailureCode associate with this failure report.
    LineNumIdentifier of FailureList associate with this failure report.
    OrgIdIdentifier of the organization for this failure.
    ParentA non-persistant attribute to store the parent of that level of the Failure Report in the FailureList hierarchy.
    SiteIdIdentifier of the site for this failure.
    TypeThe type or level of failure code.
    WoNumIdentifier to the work order which this requirement applies.
    See Also:
    FailureReportSet
    • Constructor Detail

      • FailureReport

        public FailureReport(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the Failure Report object.
        Parameters:
        ms - The FailureReport MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets Default value for some of the fields of the new FailureReport. This will take the work order number and equipment number from the owning work order.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Initailzation rountine. Wonum, linenum, type, and parent attributes are always read-only. Only the FailureCode attribute is editable.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        What delete does depends on the FRSet. Either do the delete or call the FRSet's clearFromHere.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - the signature security access flags like NOACCESSCHECK.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Once a FR is deleted, it can't be undeleted.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for Wonum.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "wonum" and "ticketid" or else nothing will be propagated.
        keyValue - The new value of wonum or ticketid.
        Throws:
        MXException
        java.rmi.RemoteException