Interface ClientNotificationService

All Known Implementing Classes:
ClientNotificationServiceImpl

public interface ClientNotificationService
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)
      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)
      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)