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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendNotificationToClient(TextMessage textMessage) same behaviour asClientNotificationService.sendNotificationToClient(String)it just formats the givenTextMessage.voidsendNotificationToClient(String message) sends a notification to the current user using a ajax reverse call.
-
Constructor Details
-
ClientNotificationServiceImpl
-
-
Method Details
-
sendNotificationToClient
Description copied from interface:ClientNotificationServicesame behaviour asClientNotificationService.sendNotificationToClient(String)it just formats the givenTextMessage.- Specified by:
sendNotificationToClientin interfaceClientNotificationService- Parameters:
textMessage- the message to format and send to the client as notification
-
sendNotificationToClient
Description copied from interface:ClientNotificationServicesends 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 aTextMessageand usClientNotificationService.sendNotificationToClient(TextMessage)- Specified by:
sendNotificationToClientin interfaceClientNotificationService- Parameters:
message- the actual string to send to the client as notification (not the key)
-