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
This commit is contained in:
parent
d1920fef76
commit
65c7a4602d
|
@ -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(),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue