psdi.app.workorder

Class WoHazardPrecSet

    • Method Detail

      • copyFromHazardPrec

        public MboRemote copyFromHazardPrec(MboRemote hazardPrec,
                                            java.lang.String dataSource)
                                     throws MXException,
                                            java.rmi.RemoteException
        Given a HazardPrec mbo, clone it for this workorder.
        Parameters:
        hazardPrec - The HazardPrec mbo to be cloned.
        dataSource - The value for wosafetydatasource (SOURCE_WORKORDER, SOURCE_WORKPLAN, or SOURCE_SAFETYPLAN).
        Returns:
        The woHazardPrec mbo, either newly added or already existing.
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Determines if the work order can add WoHazardPrec.

        If owner is null or is not WORKORDER, WOHAZARD, WOSAFETYLINK, or WOPRECAUTION, throws workorder/ownerWoHazardPrec.

        If owner is WORKORDER, call canEditRelatedSet with param WOHAZARDPREC.

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException
      • getThisRelationName

        public java.lang.String getThisRelationName()
        Returns the name of the relationship that got this set, when this set was fetched from a WoSafetyLink object. Not set by other set owners.
        See Also:
        WoHazardPrecSet.thisRelationName