psdi.app.dpldasset

Class PromoteAction

  • java.lang.Object
    • psdi.app.dpldasset.PromoteAction
    • Constructor Detail

      • PromoteAction

        public PromoteAction()
    • Method Detail

      • applyCustomAction

        public void applyCustomAction(MboRemote promotedMbo,
                                      java.lang.Object[] args)
                               throws MXException,
                                      java.rmi.RemoteException
        Performs the action for escalation action TLOAMPROMOTE by calling PromoteNode#promote(PromoteValuesRemote).
        Specified by:
        applyCustomAction in interface ActionCustomClass
        Parameters:
        mbo - A PromoteNodeRemote object
        args - Defaultname from TLOAMPRMDFLT table. The defaultname updateable through the UI is called 'DO_NOT_CHANGE_THIS_DPLDASSET' for computers, 'DO_NOT_CHANGE_THIS_NDASSET' for network devices, 'DO_NOT_CHANGE_THIS_NPASSET' for network printers. Additional defaultNames may be added to update site and related attributes for escalation points satisfying appropriate criteria.

        The MBO itself can be any deployed asset, but it is expected to match the type of defaults - therefore a filter needs to select between DEPLOYEDASSET.ASSETCLASS = (COMPUTER, NETDEVICE, NETPRINTER) in the escalation query

        Exceptions logged to maximo.crontask.ESCALATION.ESCPROMOTE

        Throws:
        MXApplicationException - if mbo is not an instance of non-persistent promotion values
        MXApplicationException - if anything goes wrong with action.
        java.rmi.RemoteException
        MXException
        See Also:
        ComputerSystem#promote(PromoteValuesRemote)}
      • acceptPromotedMbo

        protected boolean acceptPromotedMbo(MboRemote mbo)
        Check if the promoted object is accepted.
        Parameters:
        mbo - - the business object being promoted
      • validatePromotedMbo

        protected void validatePromotedMbo(MboRemote mbo)
                                    throws MXApplicationException
        Validate the promoted object. Protected to allow overwrite
        Parameters:
        mbo - - the business object being promoted
        Throws:
        MXApplicationException - - announce and error to the escalation framework
      • validateDefaults

        protected void validateDefaults(MboRemote mbo,
                                        PromoteValuesRemote defaults)
                                 throws MXException,
                                        java.rmi.RemoteException,
                                        MXApplicationException
        Validate the promotion defaults. Protected to allow overwrite
        Parameters:
        mbo - - the business object being promoted
        defaults - - the values of the defaults used to promote that default
        Throws:
        MXApplicationException - - announce and error to the escalation framework
        MXException
        java.rmi.RemoteException
      • getPromoteValues

        protected PromoteValuesRemote getPromoteValues(MboRemote mbo,
                                                       java.lang.String defaultsKey)
                                                throws java.rmi.RemoteException,
                                                       MXException
        Gets and caches the default promoteValues.
        Parameters:
        mbo - from which to get MboSet of values
        defaultsKey - defaultname of values to fetch.
        Returns:
        PromoteValuesRemote
        Throws:
        java.rmi.RemoteException
        MXException
      • getPromotionDefaultsKey

        protected java.lang.String getPromotionDefaultsKey(MboRemote mbo)
                                                    throws java.rmi.RemoteException
        Obtain the key for the promotion defaults. Protected to allow overwrite
        Parameters:
        mbo - - the business object being promoted
        Returns:
        the value of the key contained in TLOAMPRMDFLT.DEFAULTNAME
        Throws:
        java.rmi.RemoteException