From 92dfed500dd77ad013724cb3746fb21574d4c9b2 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 4 May 2022 08:59:59 +0200 Subject: [PATCH] boh --- .../social/networking/ws/methods/v2/Notifications.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java index 9c62404..0424ad9 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Notifications.java @@ -189,7 +189,7 @@ public class Notifications { logger.debug("workspace notifications from user = " + username); - if (!message.TYPE().getNotificationClass().isInstance(message)) { + if (!message.getType().getNotificationClass().isInstance(message)) { //invalid call return Response.status(Status.BAD_REQUEST).build(); } @@ -198,14 +198,14 @@ public class Notifications { Status status = Status.OK; try { - logger.debug("workspace notifications type is " + message.TYPE()); + logger.debug("workspace notifications type is " + message.getType()); SocialNetworkingSite site = SocialNetworkingSiteFinder.getSocialNetworkingSiteFromScope(context); GCubeUser senderUser = UserManagerWSBuilder.getInstance().getUserManager().getUserByUsername(username); SocialNetworkingUser user = new SocialNetworkingUser(senderUser.getUsername(), senderUser.getEmail(), senderUser.getFullname(), senderUser.getUserAvatarURL()); NotificationsManager nm = new ApplicationNotificationsManager(UserManagerWSBuilder.getInstance().getUserManager(), site, context, user); - switch (message.TYPE()) { + switch (message.getType()) { case ITEM_NEW: { WorkspaceNotificationAddedItem itemBean = (WorkspaceNotificationAddedItem) message; String userIdToNotify = itemBean.getUserIdToNotify();