psdi.app.citype

Class CdmCiType

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


    public class CdmCiType
    extends StatefulMbo
    implements CdmCiTypeRemote
    Mbo object to represent a CdmCiType object.

    The key attribute for this object is Feature.

    The attributes in this object are as follows:

    Attribute Name Description
    CDMCITYPESIDUnique ID
    CLASSSTRUCTUREIDClassification of the CI Type
    TOPLEVELCITop Level CI Type?
    STATUSCI Type Status
    CREATEDATEDate Created
    • Constructor Detail

      • CdmCiType

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

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new CdmCiType object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Initialization routine for CdmCiType object Sets classstructureid , toplevelci, status and createdate to readonly.
        Overrides:
        init in class Mbo
        Throws:
        MXException
        See Also:
        Mbo.init()
      • getStatusHandler

        protected StatusHandler getStatusHandler()
        Gets a status handler to change the Ci Type status.
        Specified by:
        getStatusHandler in class StatefulMbo
        Returns:
        a status handler to change the CI Type status.
      • getStatusHistory

        protected MboSetRemote getStatusHistory()
                                         throws MXException,
                                                java.rmi.RemoteException
        Returns the citypestatus object. Required for statefulness.
        Specified by:
        getStatusHistory in class StatefulMbo
        Returns:
        The set of CITYPESTATUS records
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        This method is overridden to add a wrapper to exceptions thrown during change status and to write warnings whether or not the status change is successful
        Specified by:
        changeStatus in interface CdmCiTypeRemote
        Specified by:
        changeStatus in interface StatefulMboRemote
        Overrides:
        changeStatus in class StatefulMbo
        Parameters:
        status - The new desired status. This is the translated status (that is, the status code as it would have been entered by a user, or valuelist.value), not the internal status value (valuelist.maxvalue).
        date - The effective date of the new status (java.util.Date).
        memo - A string briefly describing the circumstances of the change. The memo can be null.
        Throws:
        MXException - Thrown if there is a problem.
        java.rmi.RemoteException
        See Also:
        StatefulMbo.changeStatus(String,java.util.Date,String,long)