Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 23.92 KB | None | 0 0
  1. private static NotificationFactory ourInstance = new NotificationFactory();
  2.  
  3.     private static final String base_url = Variables.URL_PATH;
  4.  
  5.     public static NotificationFactory getInstance() {
  6.         return ourInstance;
  7.     }
  8.  
  9.     private NotificationFactory() {
  10.     }
  11.  
  12.     private Notification createNotification(User user, String content, String icon, Channel channel) {
  13.         String url = base_url + "#/teams/" + channel.getTeam().getDb_id() + "/" + channel.getDb_id();
  14.         return new Notification(content, url, icon, user);
  15.     }
  16.  
  17.     private PendingNotification createPendingNotification(TeamUser teamUser, String content, String icon, Channel channel) {
  18.         String url = base_url + "#/teams/" + channel.getTeam().getDb_id() + "/" + channel.getDb_id();
  19.         return new PendingNotification(teamUser, content, url, icon);
  20.     }
  21.  
  22.     private Notification createNotification(User user, String content, String icon, TeamUser teamUser) {
  23.         String url = base_url + "#/teams/" + teamUser.getTeam().getDb_id() + "/@" + teamUser.getDb_id();
  24.         return new Notification(content, url, icon, user);
  25.     }
  26.  
  27.     private Notification createNotification(User user, String content, String icon, TeamCard teamCard) {
  28.         String url = base_url + "#/teams/" + teamCard.getChannel().getTeam().getDb_id() + "/" + teamCard.getChannel().getDb_id() + "?app_id=" + teamCard.getDb_id();
  29.         return new Notification(content, url, icon, user);
  30.     }
  31.  
  32.     public Notification createNotification(User user, String content, String icon, String url) {
  33.         String final_url = base_url + url;
  34.         return new Notification(content, final_url, icon, user);
  35.     }
  36.  
  37.     private PendingNotification createPendingNotification(TeamUser teamUser, String content, String icon, String url) {
  38.         String final_url = base_url + url;
  39.         return new PendingNotification(teamUser, content, final_url, icon);
  40.     }
  41.  
  42.     public Notification createNotification(User user, String content, String icon, TeamUser teamUser, boolean flexPanel) {
  43.         if (!flexPanel)
  44.             return createNotification(user, content, icon, teamUser);
  45.         return createNotification(user, content, icon, "#/teams/" + teamUser.getTeam().getDb_id() + "/@" + teamUser.getDb_id() + "/flexPanel");
  46.     }
  47.  
  48.     public void createAskOwnerForBillingNotification(Team team, TeamUser teamUser, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) throws HttpServletException {
  49.         Notification notification = this.createNotification(team.getTeamUserOwner().getUser(), teamUser.getUsername() + " would like to access again your team " + team.getName(), "/resources/notifications/hand_shake.png", team.getDb_id() + "/" + team.getDefaultChannel().getDb_id().toString() + "/settings/payment");
  50.         hibernateQuery.saveOrUpdateObject(notification);
  51.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  52.     }
  53.  
  54.  
  55.     public void createAskOwnerToUpgradeNotification(Team team, TeamUser teamUser, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) throws HttpServletException {
  56.         Notification notification = this.createNotification(teamUser.getUser(), teamUser.getUsername() + " suggests to upgrade your Ease.space team!", "/resources/notifications/hand_shake.png", team.getDb_id() + "/" + team.getDefaultChannel().getDb_id().toString() + "/upgrade");
  57.         hibernateQuery.saveOrUpdateObject(notification);
  58.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  59.     }
  60.  
  61.     public void createTeamUserRegisteredNotification(TeamUser teamUser, TeamUser teamUser_admin, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  62.         Notification notification = this.createNotification(teamUser_admin.getUser(), teamUser.getUsername() + " is now part of your team " + teamUser.getTeam().getName() + "!", "/resources/notifications/flag.png", teamUser);
  63.         hibernateQuery.saveOrUpdateObject(notification);
  64.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  65.     }
  66.  
  67.     public void createPasswordLostNotification(User user, TeamUser teamUser, Team team, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  68.         Notification notification = this.createNotification(user, teamUser.getUsername() + " lost the password to access your team " + team.getName() + " on Ease.space. Please give again the access to this person.", "/resources/notifications/user_password_lost.png", teamUser, true);
  69.         hibernateQuery.saveOrUpdateObject(notification);
  70.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  71.     }
  72.  
  73.     public void createJoinTeamCardNotification(TeamUser teamUser, TeamCard teamCard, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  74.         Notification notification = this.createNotification(teamCard.getChannel().getRoom_manager().getUser(), teamUser.getUsername() + " would like to have access to " + teamCard.getName(), teamCard.getLogo(), teamCard);
  75.         hibernateQuery.saveOrUpdateObject(notification);
  76.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  77.     }
  78.  
  79.     public void createAppSentNotification(TeamUser teamUser_receiver, TeamUser teamUser_sender, TeamCardReceiver teamCardReceiver, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  80.         User user = teamUser_receiver.getUser();
  81.         String content = teamUser_sender.getUsername() + " sent you " + teamCardReceiver.getApp().getAppInformation().getName();
  82.         String url = "#/main/dashboard?app_id=" + teamCardReceiver.getApp().getDb_id();
  83.         String logo = teamCardReceiver.getApp().getLogo();
  84.         if (user != null && user.getUserStatus().isRegistered()) {
  85.             Notification notification = this.createNotification(user, content, logo, url);
  86.             hibernateQuery.saveOrUpdateObject(notification);
  87.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  88.         } else {
  89.             PendingNotification pendingNotification = this.createPendingNotification(teamUser_receiver, content, logo, url);
  90.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  91.         }
  92.     }
  93.  
  94.     public void createRemindTeamCardFiller(TeamCardReceiver teamCardReceiver, TeamUser teamUser, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  95.         TeamUser filler = teamCardReceiver.getTeamUser();
  96.         User user = filler.getUser();
  97.         String content = teamUser.getUsername() + " reminds you to enter " + teamCardReceiver.getTeamCard().getName() + "'s information";
  98.         String url = "#/main/dashboard?app_id=" + teamCardReceiver.getApp().getDb_id();
  99.         String logo = teamCardReceiver.getApp().getLogo();
  100.         if (user != null && user.getUserStatus().isRegistered()) {
  101.             Notification notification = this.createNotification(user, content, logo, url);
  102.             hibernateQuery.saveOrUpdateObject(notification);
  103.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  104.         } else {
  105.             PendingNotification pendingNotification = this.createPendingNotification(filler, content, logo, url);
  106.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  107.         }
  108.     }
  109.  
  110.     public void createRemindTeamCardFiller(TeamCard teamCard, TeamUser teamUser, TeamUser room_manager, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  111.         User user = room_manager.getUser();
  112.         String content = teamUser.getUsername() + " reminds you to enter " + teamCard.getName() + "'s information";
  113.         String url = "#/teams/" + teamCard.getChannel().getDb_id() + "?app_id=" + teamCard.getDb_id();
  114.         String logo = teamCard.getLogo();
  115.         Notification notification = this.createNotification(user, content, logo, url);
  116.         hibernateQuery.saveOrUpdateObject(notification);
  117.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  118.     }
  119.  
  120.     public void createRemindTeamEnterpriseCardFiller(TeamCard teamCard, TeamUser teamUser, TeamUser room_manager, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  121.         String content = room_manager.getUsername() + " reminds you to enter " + teamCard.getName() + "'s information";
  122.         String url = "#/teams/" + teamCard.getChannel().getDb_id() + "?app_id=" + teamCard.getDb_id();
  123.         String logo = teamCard.getLogo();
  124.         if (!teamUser.isRegistered())
  125.             return;
  126.         User user = teamUser.getUser();
  127.         Notification notification = this.createNotification(user, content, logo, url);
  128.         hibernateQuery.saveOrUpdateObject(notification);
  129.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  130.     }
  131.  
  132.     public void createEditRoleNotification(TeamUser teamUserToModify, TeamUser teamUser, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  133.         Notification notification = this.createNotification(teamUserToModify.getUser(), teamUser.getUsername() + " changed your role to " + teamUserToModify.getTeamUserRole().getRoleName(), "/resources/notifications/user_role_changed.png", teamUserToModify, true);
  134.         hibernateQuery.saveOrUpdateObject(notification);
  135.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  136.     }
  137.  
  138.     public void createTransferOwnershipNotification(TeamUser new_teamUser_owner, TeamUser teamUser, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  139.         Notification notification = this.createNotification(new_teamUser_owner.getUser(), teamUser.getUsername() + " changed your role to Owner", "/resources/notifications/user_role_changed.png", new_teamUser_owner, true);
  140.         hibernateQuery.saveOrUpdateObject(notification);
  141.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  142.     }
  143.  
  144.     public void createAcceptJoinRequestNotification(TeamUser teamUser_receiver, TeamUser teamUser, TeamCard teamCard, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  145.         Notification notification = this.createNotification(teamUser_receiver.getUser(), teamUser.getUsername() + " approved your access to " + teamCard.getName() + " in #" + teamCard.getChannel().getName(), teamCard.getLogo(), teamCard);
  146.         hibernateQuery.saveOrUpdateObject(notification);
  147.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  148.     }
  149.  
  150.     public void createAddTeamUserToChannelNotification(TeamUser teamUser, TeamUser teamUser_connected, Channel channel, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  151.         User user = teamUser.getUser();
  152.         String content = teamUser_connected.getUsername() + " added you in #" + channel.getName();
  153.         String icon = "/resources/notifications/channel.png";
  154.         if (user != null && user.getUserStatus().isRegistered()) {
  155.             Notification notification = this.createNotification(user, content, icon, channel);
  156.             hibernateQuery.saveOrUpdateObject(notification);
  157.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  158.         } else {
  159.             PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, icon, channel);
  160.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  161.         }
  162.     }
  163.  
  164.     public void createEditRoomNameNotification(TeamUser teamUser, Channel channel, String old_name, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  165.         User user = teamUser.getUser();
  166.         String content = "#" + old_name + " has been renamed to #" + channel.getName();
  167.         String icon = "/resources/notifications/room_renamed.png";
  168.         if (user != null && user.getUserStatus().isRegistered()) {
  169.             Notification notification = this.createNotification(user, content, icon, channel);
  170.             hibernateQuery.saveOrUpdateObject(notification);
  171.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  172.         } else {
  173.             PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, icon, channel);
  174.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  175.         }
  176.     }
  177.  
  178.     public void createAskJoinChannelNotification(TeamUser teamUser, Channel channel, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  179.         Notification notification = this.createNotification(channel.getRoom_manager().getUser(), teamUser.getUsername() + " would like to join #" + channel.getName(), "/resources/notifications/channel.png", channel);
  180.         hibernateQuery.saveOrUpdateObject(notification);
  181.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  182.     }
  183.  
  184.     public void createPasswordNotUpToDateNotification(TeamCard teamCard, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  185.         Channel channel = teamCard.getChannel();
  186.         Notification notification = this.createNotification(channel.getRoom_manager().getUser(), "Password for " + teamCard.getName() + " needs to be updated as soon as possible", teamCard.getLogo(), teamCard);
  187.         hibernateQuery.saveOrUpdateObject(notification);
  188.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  189.     }
  190.  
  191.     public void createPasswordNotUpToDateNotification(TeamCardReceiver teamCardReceiver, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  192.         TeamUser teamUser = teamCardReceiver.getTeamUser();
  193.         User user = teamUser.getUser();
  194.         String content = "Your password " + teamCardReceiver.getApp().getAppInformation().getName() + " needs to be updated as soon as possible";
  195.         String url = "#/main/dashboard?app_id=" + teamCardReceiver.getApp().getDb_id();
  196.         String icon = teamCardReceiver.getApp().getLogo();
  197.         if (user != null && user.getUserStatus().isRegistered()) {
  198.             Notification notification = this.createNotification(user, content, icon, url);
  199.             hibernateQuery.saveOrUpdateObject(notification);
  200.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  201.         } else {
  202.             PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, icon, url);
  203.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  204.         }
  205.     }
  206.  
  207.  
  208.     public void createPasswordNotUpToDateNotificationOneWeek(TeamCardReceiver teamCardReceiver, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  209.         TeamCard teamCard = teamCardReceiver.getTeamCard();
  210.         Team team = teamCardReceiver.getTeamCard().getTeam();
  211.         Channel channel = teamCard.getChannel();
  212.         String url = "#/teams/" + team.getDb_id() + "/" + channel.getDb_id() + "?app_id=" + teamCard.getDb_id();
  213.         Notification notification = this.createNotification(channel.getRoom_manager().getUser(), "The password of " + teamCardReceiver.getTeamUser().getUsername() + " for " + teamCard.getName() + " is not up to date for the last 7 days", teamCard.getLogo(), url);
  214.         hibernateQuery.saveOrUpdateObject(notification);
  215.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  216.     }
  217.  
  218.     public void createDepartureDateThreeDaysNotification(TeamUser teamUser, TeamUser teamUser_admin, String formattedDate, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  219.         Notification notification = this.createNotification(teamUser_admin.getUser(), "the departure of " + teamUser.getUsername() + " is planned on next " + formattedDate + ".", "/resources/notifications/user_departure.png", teamUser, true);
  220.         hibernateQuery.saveOrUpdateObject(notification);
  221.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  222.     }
  223.  
  224.     public void createPasswordLostOneWeekNotification(TeamUser teamUser, TeamUser teamUser_admin, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  225.         Notification notification = this.createNotification(teamUser_admin.getUser(), "Since last week " + teamUser.getUsername() + " lost the password to access your team " + teamUser.getTeam().getName() + " on Ease.space. Please give again the access to this person.", "/resources/notifications/user_password_lost.png", teamUser);
  226.         hibernateQuery.saveOrUpdateObject(notification);
  227.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  228.     }
  229.  
  230.     public void createRemovedFromTeamCardNotification(TeamUser teamUser, TeamUser teamUser_admin, String app_name, String logo, Channel channel, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  231.         User user = teamUser.getUser();
  232.         String content = teamUser_admin.getUsername() + " removed your access to " + app_name + " (in #" + channel.getName() + ").";
  233.         if (user != null && user.getUserStatus().isRegistered()) {
  234.             Notification notification = this.createNotification(user, content, logo, channel);
  235.             hibernateQuery.saveOrUpdateObject(notification);
  236.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  237.         } else {
  238.             PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, logo, channel);
  239.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  240.         }
  241.     }
  242.  
  243.     private WebSocketManager getUserWebSocketManager(Map<Integer, Map<String, Object>> userIdMap, User user) {
  244.         Map<String, Object> userProperties = userIdMap.get(user.getDb_id());
  245.         if (userProperties == null) {
  246.             userProperties = new ConcurrentHashMap<>();
  247.             userIdMap.put(user.getDb_id(), userProperties);
  248.         }
  249.         WebSocketManager webSocketManager = (WebSocketManager) userProperties.get("webSocketManager");
  250.         if (webSocketManager == null) {
  251.             webSocketManager = new WebSocketManager();
  252.             userProperties.put("webSocketManager", webSocketManager);
  253.         }
  254.         return webSocketManager;
  255.     }
  256.  
  257.     public void createMustFillAppNotification(TeamUser teamUser, TeamUser teamUser1, TeamCardReceiver teamCardReceiver, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  258.         User user = teamUser.getUser();
  259.         String content = teamUser1.getUsername() + " asks you to enter " + teamCardReceiver.getTeamCard().getName() + "'s information";
  260.         String url = "#/main/dashboard?app_id=" + teamCardReceiver.getApp().getDb_id();
  261.         String logo = teamCardReceiver.getTeamCard().getLogo();
  262.         if (user != null && user.getUserStatus().isRegistered()) {
  263.             Notification notification = this.createNotification(user, content, logo, url);
  264.             hibernateQuery.saveOrUpdateObject(notification);
  265.             this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  266.         } else {
  267.             PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, logo, url);
  268.             hibernateQuery.saveOrUpdateObject(pendingNotification);
  269.         }
  270.     }
  271.  
  272.     public void createRemindAdminPasswordLost(TeamUser teamUser, TeamUser teamUser_admin, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  273.         User user = teamUser_admin.getUser();
  274.         String content = "Reminder: " + teamUser.getUsername() + " asks you to be re-accepted in " + teamUser.getTeam().getName();
  275.         Notification notification = this.createNotification(user, content, "/resources/notifications/user_password_lost.png", teamUser, true);
  276.         hibernateQuery.saveOrUpdateObject(notification);
  277.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  278.     }
  279.  
  280.     public void createAppFilledNotification(TeamUser filler, TeamCard teamCard, Map<Integer, Map<String, Object>> userIdMap, HibernateQuery hibernateQuery) {
  281.         String content = teamCard.getName() + " is now ready";
  282.         String url = "#/main/dashboard?app_id=";
  283.         String logo = teamCard.getLogo();
  284.         teamCard.getTeamCardReceiverMap().values().forEach(teamCardReceiver -> {
  285.             TeamUser teamUser = teamCardReceiver.getTeamUser();
  286.             if (!teamUser.equals(filler)) {
  287.                 User user = teamUser.getUser();
  288.                 if (user != null && user.getUserStatus().isRegistered()) {
  289.                     Notification notification = this.createNotification(user, content, logo, url + teamCardReceiver.getApp().getDb_id());
  290.                     hibernateQuery.saveOrUpdateObject(notification);
  291.                     this.getUserWebSocketManager(userIdMap, user).sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  292.                 } else {
  293.                     PendingNotification pendingNotification = this.createPendingNotification(teamUser, content, logo, url + teamCardReceiver.getApp().getDb_id());
  294.                     hibernateQuery.saveOrUpdateObject(pendingNotification);
  295.                 }
  296.             }
  297.         });
  298.     }
  299.  
  300.     public void createUpdateTeamCardNotification(TeamUser teamUser, TeamCard teamCard, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  301.         String content = teamUser.getUsername() + " suggests you a new password for " + teamCard.getName();
  302.         String url = "#/main/catalog/website";
  303.         Notification notification = this.createNotification(teamCard.getChannel().getRoom_manager().getUser(), content, teamCard.getLogo(), url);
  304.         hibernateQuery.saveOrUpdateObject(notification);
  305.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  306.     }
  307.  
  308.     public void createNewUpdateNotification(Update update, WebSocketManager userWebSocketManager, HibernateQuery hibernateQuery) {
  309.         StringBuilder content = new StringBuilder();
  310.         String url = "#/main/catalog/website";
  311.         String logo;
  312.         String contentAppName;
  313.         if (update.getWebsite() != null) {
  314.             logo = update.getWebsite().getLogo();
  315.             if (update.getApp() == null) {
  316.                 content.append("New Account");
  317.                 contentAppName = update.getWebsite().getName();
  318.             } else {
  319.                 if (!update.getApp().isEmpty())
  320.                     content.append("New Password");
  321.                 else
  322.                     content.append("Account Update");
  323.                 contentAppName = update.getApp().getAppInformation().getName();
  324.             }
  325.         } else {
  326.             try {
  327.                 URL logoUrl = new URL(update.getUrl());
  328.                 logo = "https://placehold.it/175x175/373b60/FFFFFF/&text=" + logoUrl.getHost().substring(0, 1);
  329.                 content.append("New Account");
  330.                 contentAppName = logoUrl.getHost();
  331.             } catch (MalformedURLException e) {
  332.                 logo = "E";
  333.                 contentAppName = "an app";
  334.             }
  335.         }
  336.         content.append(" detected for ").append(contentAppName).append(". Manage now.");
  337.         Notification notification = this.createNotification(update.getUser(), content.toString(), logo, url);
  338.         hibernateQuery.saveOrUpdateObject(notification);
  339.         userWebSocketManager.sendObject(WebSocketMessageFactory.createNotificationMessage(notification));
  340.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement