From 65c7a4602d425ae56635fd2fbae7c9aab6322a3a Mon Sep 17 00:00:00 2001 From: "massimiliano.assante" Date: Sat, 16 Mar 2013 01:40:56 +0000 Subject: [PATCH] edited signature for updatedItems git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@71461 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../social/ApplicationNotificationsManager.java | 6 +++--- .../social/NotificationsManager.java | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) 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