psdi.app.sla

Class SLARecords

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


    public class SLARecords
    extends Mbo
    implements SLARecordsRemote
    MBO to represent a relationship between a Service Level Agreement and another mbo object that the SLA is applied to.

    See SLA Package Description for details.

    The key attribute for this object is SLANUM, OWNERTABLE, OWNERID.

    The attributes in this object are as follows:

    Attribute NameDescription
    SLANUMThe identification of the SLA in this relationship
    OWNERTABLEThe name of the mbo object this SLA is applied to
    OWNERIDThe unique key of the mbo object this SLA is applied to
    CONTACTDATETarget contact date of this mbo when this SLA is applied
    RESPONSEDATETarget response date of this mbo when this SLA is applied
    RESOLUTIONDATETarget resolution date of this mbo when this SLA is applied
    • Constructor Detail

      • SLARecords

        public SLARecords(MboSet ms)
                   throws MXException,
                          java.rmi.RemoteException
        Constructs the SLARecords object.

        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboSet

        public MboSetRemote getMboSet(java.lang.String name)
                               throws MXException,
                                      java.rmi.RemoteException
        Get the related mbo object that the SLA is applied to. Because this can potentially be any object we cannot use a relationship defined in DB.
        Specified by:
        getMboSet in interface MboRemote
        Overrides:
        getMboSet in class Mbo
        Parameters:
        name - The relationship provided to retrieve a related mboSet, usually using foreign keys. For example, "psdi.app.workorder.WOSetRemote.ASSET" is a relationship for the work order object to access the asset Set where "workorder.assetnum=asset.assetnum". The relationship can also be chained. Such as ASSET.ASSETSTATUS.
        Returns:
        The returned related set specified through the relationship.
        Throws:
        MXException - "A relationship called {0} does not exist for the {1} business object" exception will be thrown if the relationship was not found. "Unknown Object" exception will be thrown if the database object can not be found through the relationship.
        java.rmi.RemoteException
        See Also:
        Mbo.getMboSet(String)
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new SLARecords object, set the ownertable and ownerid to that of the owner mbo.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException