Class ClientNotificationServiceImpl
java.lang.Object
ch.tocco.nice2.netui.impl.notification.ClientNotificationServiceImpl
- All Implemented Interfaces:
ClientNotificationService
@Component
public class ClientNotificationServiceImpl
extends Object
implements ClientNotificationService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendNotificationToClient
(TextMessage textMessage) same behaviour asClientNotificationService.sendNotificationToClient(String)
it just formats the givenTextMessage
.void
sendNotificationToClient
(String message) sends a notification to the current user using a ajax reverse call.
-
Constructor Details
-
ClientNotificationServiceImpl
-
-
Method Details
-
sendNotificationToClient
Description copied from interface:ClientNotificationService
same behaviour asClientNotificationService.sendNotificationToClient(String)
it just formats the givenTextMessage
.- Specified by:
sendNotificationToClient
in interfaceClientNotificationService
- Parameters:
textMessage
- the message to format and send to the client as notification
-
sendNotificationToClient
Description copied from interface:ClientNotificationService
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 aTextMessage
and usClientNotificationService.sendNotificationToClient(TextMessage)
- Specified by:
sendNotificationToClient
in interfaceClientNotificationService
- Parameters:
message
- the actual string to send to the client as notification (not the key)
-