psdi.app.workorder

Class AutoAttrUpdate

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


    public class AutoAttrUpdate
    extends Mbo
    implements AutoAttrUpdateRemote
    MBO object to represent an auto attribute update. See Work Order package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId, wonum, section,AssetAttrId.

    The attributes in this object are as follows:

    Attribute NameDescription
    ASSET Asset number
    Attribute Asset or locataion attribute
    AutoAttrUpdateId Unique Id
    CompleteDateTime Date Completed of attribute change
    CompletedBy Attribute update By
    New ALN Value of the attribute
    New NUM Value of attribute
    new asset attribute value
    OldAlnValue Old ALN Value of the attribute
    OldNumValue Old NUM Value of the attribute
    Old asset attribute value
    OrgIdIdentifier of the organization for this specification.
    SiteIdIdentifier of the site for this specification.
    WoNumWork Order Number.
    • Constructor Detail

      • AutoAttrUpdate

        public AutoAttrUpdate(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Construct the AutoAttrUpdate object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • initFieldFlagsOnMbo

        public void initFieldFlagsOnMbo(java.lang.String attrName)
                                 throws MXException
        Description copied from class: Mbo
        The logic of setting the readonly and required field flags to the mbo. Any setting of the field flags that require expensive operation, such as database query should be moved from init() to this method. However, those which don't require steps such as fetching Mbos can be left in init(). You can group the logic for a few attributes together if logic of deciding their flag is the same, or in other words, can be handled at once.
        Overrides:
        initFieldFlagsOnMbo in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets defaults values for a new AutoAttrUpdate object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - MAXIMO System error
        java.rmi.RemoteException - RMI error
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to see if this object can be deleted throws MXException if it cannot be deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException("asset","noDeleteAssetSpec") - if the object attempting to delete this object is not an Asset or ClassSpec object
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        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 not. 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 AutoAttrUpdate to the target AutoAttrUpdate.
        1. WONUM
        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, otherwise return false.
        Throws:
        java.rmi.RemoteException
        MXException
      • 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" or else nothing will be propagated.
        keyValue - The new value of wonum.
        Throws:
        MXException
        java.rmi.RemoteException