com.ibm.tivoli.maximo.pushnotification

Class PushNotificationService

    • Field Detail

      • PUSHNOTFLOGGER

        public static final MXLogger PUSHNOTFLOGGER
    • Constructor Detail

      • PushNotificationService

        public PushNotificationService()
                                throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • PushNotificationService

        public PushNotificationService(MXServer mxServer)
                                throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • sendMessage

        public void sendMessage(UserInfo userInfo,
                                java.lang.String msg)
                         throws MXException,
                                java.rmi.RemoteException
        This method is used to push notification message.
        Parameters:
        userInfo -
        msg -
        Throws:
        MXException
        java.rmi.RemoteException
      • sendMessage

        public void sendMessage(UserInfo userInfo,
                                NotificationMessage notificationMessage)
                         throws MXException,
                                java.rmi.RemoteException
        This method is used to send push notification message.
        Parameters:
        userInfo -
        notificationMessage -
        Throws:
        MXException
        java.rmi.RemoteException
      • sendMessage

        public void sendMessage(UserInfo userInfo,
                                NotificationMessage notificationMessage,
                                java.lang.String eventName)
                         throws MXException,
                                java.rmi.RemoteException
        This method is used to send push notification message.
        Parameters:
        userInfo -
        notificationMessage -
        eventName -
        Throws:
        MXException
        java.rmi.RemoteException
      • sendMessage

        public void sendMessage(UserInfo userInfo,
                                NotificationMessage notificationMessage,
                                java.lang.String eventName,
                                java.lang.String projectName)
                         throws MXException,
                                java.rmi.RemoteException
        This method is used to send push notification message.
        Parameters:
        userInfo -
        notificationMessage -
        eventName -
        Throws:
        MXException
        java.rmi.RemoteException
      • sendMessageforUserId

        public void sendMessageforUserId(UserInfo userInfo,
                                         java.lang.String notifMessageJsonStr,
                                         java.lang.String msgRecevingUserId,
                                         java.lang.String notifMessage,
                                         java.lang.String eventName,
                                         java.lang.String projectName)
                                  throws MXException,
                                         java.rmi.RemoteException
        This method is used to send push notification message. It is used for background tasks where task is executed with an admin user but the message is send to a different user. For example, A notification message in a queue processed by MIF. An escalation code processing an escalation to trigger a message. A background cron job doing something to send a message.
        Parameters:
        userInfo - : The admin user info based on MIF, escalation or cron task.
        msgRecevingUserId -
        notificationMessage -
        Throws:
        MXException
        java.rmi.RemoteException
      • sendMessageforUserId

        public void sendMessageforUserId(UserInfo userInfo,
                                         java.lang.String msgRecevingUserId,
                                         NotificationMessage notificationMessage,
                                         java.lang.String eventName,
                                         java.lang.String projectName)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getProviderDevTypeSet

        public MboSetRemote getProviderDevTypeSet(UserInfo userInfo,
                                                  java.lang.String deviceType,
                                                  java.lang.String projectName)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Get Provider info for a device type (Android, iOS)
        Parameters:
        userInfo -
        deviceType -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getProviderMbo

        public MboRemote getProviderMbo()
                                 throws MXException,
                                        java.rmi.RemoteException
        Get Provider info for a device type (Android, iOS)
        Parameters:
        userInfo -
        deviceType -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getProviderName

        public java.lang.String getProviderName()
      • getNotificationMessage

        public NotificationMessage getNotificationMessage(java.lang.String msg,
                                                          java.lang.String deviceId)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        This method creates a new notification message object for the device.
        Parameters:
        msg -
        deviceId -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getNotificationMessage

        public NotificationMessage getNotificationMessage(NotificationMessage notificationMessage,
                                                          java.lang.String deviceId)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        This method creates a new notification message object for the device.
        Parameters:
        notificationMessage -
        deviceId -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setProviderName

        public void setProviderName(java.lang.String providername)