Class AbstractNotification

    • Field Detail

      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
    • Constructor Detail

      • AbstractNotification

        public AbstractNotification()
    • Method Detail

      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(String msg)
        Hook method before attempting to send the message.
        Parameters:
        msg - the message to send
        Returns:
        null if successful, otherwise error message
      • doSendNotification

        protected abstract String doSendNotification​(String msg)
        Sends the notification.
        Parameters:
        msg - the message to send
        Returns:
        null if successfully sent, otherwise error message
      • sendNotification

        public String sendNotification​(String msg)
        Sends the notification.
        Parameters:
        msg - the message to send
        Returns:
        null if successfully sent, otherwise error message