psdi.app.ci

Class CIRelation

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


    public class CIRelation
    extends Mbo
    implements CIRelationRemote
    MBO object to represent CIRelation. See Configuration Item package description for details.

    This is a system level object.

    The key attribute for this object is: sourceci, targetci, relationum.

    The attributes in this object are as follows:

    Attribute NameDescription
    CIRelationIDUnique ID
    SourceCIIdentifier of the source CI that has a relation with the target CI
    TargetCIIdentifier of the target CI that has a relation with the source CI
    RelationNumIdentifier of the relationship that exists between the source CI and target CI
    ChangeByName of the user who last modified CI Relationship. This attribute defaults to the current user unless another value is provided.
    ChangeDateChange Date of relationship between CIs.This attribute defaults to the MXServer date/time unless another value is provided.
    AncestorCITop level CI.
    ParentCIImmediate parent of CI.
    • Constructor Detail

      • CIRelation

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

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

      • init

        public void init()
                  throws MXException
        Initialization routine.
        Overrides:
        init in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
      • add

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

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Saves a CIRelation object. Check for relation rules before saving
        Overrides:
        save in class Mbo
        Parameters:
        none -
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        override delete to delete this record
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • createCIRelationHis

        protected void createCIRelationHis()
                                    throws MXException,
                                           java.rmi.RemoteException
        Create CIRelationHis record to record the CIRelation history between CI's
        Throws:
        MXException
        java.rmi.RemoteException
      • updateCIRelationHis

        protected void updateCIRelationHis()
                                    throws MXException,
                                           java.rmi.RemoteException
        Update CIRelationHis record to record the end of existing relation between CI's
        Throws:
        MXException
        java.rmi.RemoteException
      • checkRelationRules

        protected void checkRelationRules()
                                   throws MXException,
                                          java.rmi.RemoteException
        Check for relation rules for a given relation
        Throws:
        MXException
        java.rmi.RemoteException
      • checkRelationRules

        protected void checkRelationRules(MboRemote ciMbo)
                                   throws MXException,
                                          java.rmi.RemoteException
        Check for relation rules for a given relation
        Parameters:
        ciMbo - CI Mbo for which relation rules are validated
        Throws:
        MXException
        java.rmi.RemoteException
      • updateAncestorParentCI

        protected void updateAncestorParentCI()
                                       throws MXException,
                                              java.rmi.RemoteException
        Set the AncestorCI and ParentCI column values if the relationship is a "containment" type relationship
        Throws:
        MXException
        java.rmi.RemoteException