psdi.iface.app.extsystem

Class MaxExtSystem

  • java.lang.Object
    • Constructor Detail

      • MaxExtSystem

        public MaxExtSystem(MboSet ms)
                     throws MXException,
                            java.rmi.RemoteException
        Constructor
        Parameters:
        ms - Mbo Set to which this mbo will be added
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the newly created mbo
        Overrides:
        init in class Mbo
        Throws:
        MXException - Maximo Exception
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds the current mbo to the given set
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        This is called whenever a change is made to the attributes of maxextsystem. This method updates the changedate, changeby attributes.
        Overrides:
        modify in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        checks whether the ext sys can be deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - throws MXApplicationException if the ext sys is enabled
        java.rmi.RemoteException - throws RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Called when this mbo is being deleted
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - the access modifier
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
        See Also:
        Mbo.delete(long)
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates an EXTSYSTEM record. Also duplicates the related MAXEXTIFACEOUT, MAXEXTIFACEIN as well as Control entires
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created external system.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. The following Extsystem fields will be skipped without being copied to the newly duplicated extsystem:
        1. extsystem
        2. description
        3. userdefined
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Save of an EXTSYSTEM record,adds extsys level controls associated to an Enterprise service or publish channel
        Overrides:
        save in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • processExtsysControls

        public void processExtsysControls(MboSetRemote extIfaceSet,
                                          java.util.Map controlMap)
                                   throws MXException,
                                          java.rmi.RemoteException
        Method to add or delete extsys controls whenever a ES or PC is added or deleted.
        Parameters:
        extIfaceSet - The ES or PC being added/deleted from the extsys
        controlMap - A HashMap to store the the ES or PC name and the ifacecontrol being added/deleted along with it
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Overrides default omplementation of mbo.appValidate. if ext sys end point if of type FLAT (flat file or int tab), then check if any pub chnl end point is null; for all such channel having end points as null, check if those channel MOS has (flat support and no alias conflict); if any of this condiction if not true, then throw an exception
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception