diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java index f9dc1c1..ba6f97b 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java @@ -203,14 +203,14 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen * @throws InternalErrorException */ @Override - public boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem item) throws InternalErrorException { + public boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem item, WorkspaceFolder sharedFolder) throws InternalErrorException { Notification not = new Notification( UUID.randomUUID().toString(), NotificationType.WP_ITEM_UPDATED, userIdToNotify, //user no notify - "?oid="+item.getId()+"&parentoid="+item.getParent().getId(), + item.getId(), //the new Date(), - "?folder="+item.getParent().getId()+"&item="+item.getId(), + "?oid="+item.getId()+"&parentoid="+item.getParent().getId(), " updated "+ item.getName() +" to your workspace shared folder "+ item.getParent().getName(), false, aslSession.getUsername(), diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java index 975f629..fa65d13 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java @@ -55,9 +55,10 @@ public interface NotificationsManager { * use to notify a user he got a workspace item updated from one of his workspace shared folder * @param userIdToNotify the user you want to notify * @param updatedItem the updated shared {@link WorkspaceItem} + * @param sharedFolder the shared folder {@link WorkspaceFolder} * @return true if the notification is correctly delivered, false otherwise */ - boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem item) throws Exception; + boolean notifyUpdatedItem(String userIdToNotify, WorkspaceItem item, WorkspaceFolder sharedFolder) throws Exception; /** * * @param userIdToNotify the user you want to notify