com.ibm.tivoli.maximo.mfmail

Class MfMailSTSendAction

  • java.lang.Object
    • com.ibm.tivoli.maximo.mfmail.MfMailSTSendAction
    • Constructor Detail

      • MfMailSTSendAction

        public MfMailSTSendAction()
    • Method Detail

      • applyCustomAction

        public void applyCustomAction(MboRemote originalMbo,
                                      java.lang.Object[] arg1)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from interface: ActionCustomClass
        This is the method which is called when the class is used a custom action.
        Specified by:
        applyCustomAction in interface ActionCustomClass
        Parameters:
        originalMbo - The Mbo on which the action will apply.
        Throws:
        MXException
        java.rmi.RemoteException
      • sendSTAssignmentMail

        protected void sendSTAssignmentMail(CommTemplateRemote commTemplate,
                                            MboRemote targetMbo,
                                            java.lang.String subjectKey,
                                            java.lang.String[] sendTo,
                                            java.lang.String secString,
                                            UserInfo ui,
                                            int deviceClass,
                                            MfMailSTCtrlInfo ci,
                                            UserInfo sendToUi,
                                            boolean bCheckHtml)
                                     throws java.rmi.RemoteException,
                                            MXException
        Compose outbound mail to notify assignment and send
        Parameters:
        commTemplate -
        targetMbo -
        Throws:
        java.rmi.RemoteException
        MXException
      • checkTrackingEntry

        protected boolean checkTrackingEntry(MboRemote targetMbo,
                                             UserInfo ui)
                                      throws java.rmi.RemoteException,
                                             MXException
        Check if tracking entry exist. Reset tracking entry in case status has changed. Returns true when there is no tracking entry
        Parameters:
        targetMbo -
        ui -
        Returns:
        True, if there is NO tracking entry or targetMbo is to be processed
        Throws:
        java.rmi.RemoteException
        MXException
      • createOrReuseTrackEntry

        protected MboRemote createOrReuseTrackEntry(MboRemote targetMbo,
                                                    java.lang.String[] sendTo,
                                                    MfMailSTCtrlInfo ci)
                                             throws java.rmi.RemoteException,
                                                    MXException
        Reuse tracking entry if status is complete. Or add new entry
        Parameters:
        targetMbo -
        sendTo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getControlEntry

        protected MfMailSTCtrlInfo getControlEntry(MboRemote targetMbo,
                                                   UserInfo ui)
                                            throws java.rmi.RemoteException,
                                                   MXException
        Get control entry for specified Mbo and its status. Specified device class is used to search entry first, and if there is none, medium is used as default.
        Parameters:
        targetMbo -
        ui - UserInfo used to create context for MboSet
        deviceClass -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getCommTemplate

        protected CommTemplateRemote getCommTemplate(MboRemote targetMbo,
                                                     UserInfo ui,
                                                     int deviceClass,
                                                     boolean htmlFlag,
                                                     MfMailSTCtrlInfo ci)
                                              throws java.rmi.RemoteException,
                                                     MXException
        Get communication template. This method was created to retrieve communication template with special suffix if html mode is specified, but that part of logic is removed and now simply select communication template with name specified in the control template.
        Parameters:
        targetMbo -
        ui -
        deviceClass -
        htmlFlag -
        ci -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getSendToUser

        protected UserInfo getSendToUser(MboRemote targetMbo,
                                         MfMailSTCtrlInfo ci)
                                  throws java.rmi.RemoteException,
                                         MXException
        Map sendToRole to user and retrieve one of users to retrieve language information
        Parameters:
        targetMbo -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getRegisterKey

        protected java.lang.String getRegisterKey(MboRemote mbo)
                                           throws java.rmi.RemoteException,
                                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • registerMbo

        protected java.lang.String registerMbo(MboRemote mbo)
                                        throws java.rmi.RemoteException,
                                               MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • unregisterMbo

        protected void unregisterMbo(java.lang.String key)
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException