psdi.app.workorder

Class WoTagLockSet

    • Method Detail

      • 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:
        WoTagLockSet.thisRelationName
      • copyFromTagLock

        public MboRemote copyFromTagLock(MboRemote tagLock,
                                         java.lang.String dataSource)
                                  throws MXException,
                                         java.rmi.RemoteException
        Given a TagLock mbo, clone it for this workorder.
        Parameters:
        tagLock - The TagLock mbo to be cloned.
        dataSource - The value for wosafetydatasource (SOURCE_WORKORDER, SOURCE_WORKPLAN, or SOURCE_SAFETYPLAN).
        Returns:
        The WoTagLock 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 WoTagLock.

        If owner is null or is not WORKORDER, WOTAGOUT, WOSAFETYLINK, or WOLOCKOUT, throws workorder/ownerWoTagLock.

        If owner is WORKORDER, call canEditRelatedSet with param WOTAGLOCK.

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException