Interface ClientNotificationService

All Known Implementing Classes:
ClientNotificationServiceImpl

@Deprecated public interface ClientNotificationService
Deprecated.
A class to send an information notification to the current user Note: Notifications won't work in a persist or background task because they run in their own thread
  • Method Details

    • sendNotificationToClient

      void sendNotificationToClient(TextMessage message)
      Deprecated.
      same behaviour as sendNotificationToClient(String) it just formats the given TextMessage.
      Parameters:
      message - the message to format and send to the client as notification
    • sendNotificationToClient

      void sendNotificationToClient(String message)
      Deprecated.
      sends a notification to the current user using a ajax reverse call. If no current user is available, (could happen if a listener is triggered by a task) it won't send the notification. Note: If you wish to pass a text key, wrap it into a TextMessage and us sendNotificationToClient(TextMessage)
      Parameters:
      message - the actual string to send to the client as notification (not the key)