psdi.app.asset

Class AssetHierarchy

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


    public class AssetHierarchy
    extends Mbo
    implements AssetHierarchyRemote
    MBO that represents a snapshot of the position in the hierarchy of a piece of asset on a work order at the time the work order is closed. This object is added to the database when the work order is closed. See Asset package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId, Wonum, Assetnum.

    The attributes in this object are as follows:

    Attribute NameDescription
    AssetnumUnique identifier for the asset object on the work order that was closed.
    LocationAsset location at the time the work order was closed.
    OrgIdIdentifier of the organization for this work order.
    ParentAssetnum of the parent to the asset described in the Assetnum attribute. This is the parent-child relationship that existed at the time the work order identified by the Wonum attribute was closed.
    SiteIdIdentifier of the site for this work order.
    WonumUnique identifier of the work order for which the AssetHierarchy described by this object was created when the work order was closed.
    See Also:
    WO, Asset
    • Constructor Detail

      • AssetHierarchy

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new ASSETHIERARCHY record. This can only be done if the owner is the Asset object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException -
        if owner is not the Asset object
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to make sure that the owner is the Asset object before proceeding to the delete method.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException -
        if owner is not the Asset object
        java.rmi.RemoteException