diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/notifications/NotificationsProducer.java b/src/main/java/org/gcube/portlets/user/workspace/server/notifications/NotificationsProducer.java index 0fb4f61..46ea0b4 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/notifications/NotificationsProducer.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/notifications/NotificationsProducer.java @@ -441,7 +441,7 @@ public class NotificationsProducer { //DEBUG System.out.println("Sending notification to user "+infoContactModel.getLogin() +" moved item "+workspaceItem.getName()+" in shared folder "+sharedFolder.getName()); - boolean notify = notificationsMng.notifyRemovedItem(infoContactModel.getLogin(), workspaceItem, sharedFolder); + boolean notify = notificationsMng.notifyMovedItem(infoContactModel.getLogin(), workspaceItem, sharedFolder); if(!notify){ gcubeLogger.error("An error occured when notify user: "+infoContactModel.getLogin()); @@ -510,15 +510,15 @@ public class NotificationsProducer { -// boolean notify = notificationsMng.notifyRemovedItem(infoContactModel.getLogin(), workspaceItem, sharedFolder); + boolean notify = notificationsMng.notifyRemovedItem(infoContactModel.getLogin(), itemName, sharedFolder); -// if(!notify){ -// gcubeLogger.error("An error occured when notify user: "+infoContactModel.getLogin()); + if(!notify){ + gcubeLogger.error("An error occured when notify user: "+infoContactModel.getLogin()); //DEBUG -// System.out.println("An error occured when notify user: "+infoContactModel.getLogin()); -// } + System.out.println("An error occured when notify user: "+infoContactModel.getLogin()); + } } }catch (Exception e) { gcubeLogger.error("An error occurred in notifyRemovedItemToSharing ", e);