psdi.app.location

Class LocStatus

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


    public class LocStatus
    extends Mbo
    implements LocStatusRemote
    MBO to represent the status of an operating location. See the Location package description for details.

    This is a site level object.

    The key attributes for this object are SiteId, Location, and ChangeDate.

    The attributes in this object are as follows:

    Attribute NameDescription
    ChangeBy, ChangeDateName of the user who last updated this object and date of last change.
    LocationLocation Identifier. For operating locations only.
    MemoMemo field to hold auxiliary information related to the status change.
    OrgIdIdentifier of the organization for this location.
    SiteIdIdentifier of the site for this location.
    StatusStatus of this location. Validated against the ValueList table where the value list name is LOCSTAT. Default values are DECOMMISSIONED, OPERATING, and PLANNED.
    See Also:
    Location, LocHierarchy, LocSystem, psdi.app.location.LocAuth, LocAncestor, LocOper, LocationSpec
    • Constructor Detail

      • LocStatus

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new LocStatus Field defaults are set
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXApplicationException("locations", - "locstatusNoAdd") is thrown when owner is null or is not instance of operating location.
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Delete a LocStatus record. Can only be done when called from Location object.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException("locations", - "locstatusNoDelete") is thrown when owner is null or owner is not instance of location
        MXException
        java.rmi.RemoteException