psdi.app.workorder

Class WoHazardSet

    • Method Detail

      • copyFromHazard

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

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

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

        If owner is null or is not WORKORDER or WOSAFETYLINK, throws workorder/ownerWoHazard.

        If owner is WORKORDER, call canEditRelatedSet with param WOHAZARD.

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException