psdi.app.safety

Class TagLock

  • All Implemented Interfaces:
    java.rmi.Remote, TagLockRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class TagLock
    extends Mbo
    implements TagLockRemote
    Mbo object to represent TagLock. Relates tagouts and lockouts.

    See Safety Package description.

    This is a site level object.

    The key attributes for this object are SiteID and TagLockID.

    The attributes in this object are as follows:

    Attribute NameDescription
    ApplySeqThis can specify the sequence in which the LockOuts should be applied to effect the TagOut.
    LockOutIDForeign key to LockOut.
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    RemoveSeqThis can specify the sequence in which the LockOuts should be removed.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    TagLockIDUnique identifier for this object, within site.
    TagOutIDForeign key to TagOut.
    Extra Fields TL01 thru TL10extra fields
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        LockOutIDIf owner is LockOut, equals the owner's LockOutID.
        TagLockIDgenerateUniqueID
        TagOutIDIf owner is TagOut, equals the owner's TagOutID. If owner is LockOut and lockout's owner is TagOut, equals that TagOutID.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        If Maxvar says to AutoDeleteLockout, then if the related LockOut is not referenced by any other TagLock, delete the LockOut.
        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
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        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 TagOutID or LockOutID.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - The attribute name.
        keyValue - The new value of the attribute.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo.Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped.If this field does not need to be copied return true. The following is a list of fields that are not copied from the source TagLock to the target TagLock.
          TAGOUTID LOCKOUTID TAGLOCKID
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied.In all other cases return false.
        Throws:
        java.rmi.RemoteException
        MXException