Esempio n. 1
5
 public void sendNotification(int userId, String message) {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(CHANNEL + userId, new FacesMessage("SAPo", message));
 }
Esempio n. 2
0
 public void send() {
   EventBus eventBus = EventBusFactory.getDefault().eventBus();
   eventBus.publish(
       CHANNEL,
       new FacesMessage(
           StringEscapeUtils.escapeHtml(summary), StringEscapeUtils.escapeHtml(detail)));
 }