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
|
* @throws InternalErrorException
|
||||||
*/
|
*/
|
||||||
@Override
|
@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(
|
Notification not = new Notification(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
NotificationType.WP_ITEM_UPDATED,
|
NotificationType.WP_ITEM_UPDATED,
|
||||||
userIdToNotify, //user no notify
|
userIdToNotify, //user no notify
|
||||||
"?oid="+item.getId()+"&parentoid="+item.getParent().getId(),
|
item.getId(), //the
|
||||||
new Date(),
|
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(),
|
" updated "+ item.getName() +" to your workspace shared folder "+ item.getParent().getName(),
|
||||||
false,
|
false,
|
||||||
aslSession.getUsername(),
|
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
|
* 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 userIdToNotify the user you want to notify
|
||||||
* @param updatedItem the updated shared {@link WorkspaceItem}
|
* @param updatedItem the updated shared {@link WorkspaceItem}
|
||||||
|
* @param sharedFolder the shared folder {@link WorkspaceFolder}
|
||||||
* @return true if the notification is correctly delivered, false otherwise
|
* @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
|
* @param userIdToNotify the user you want to notify
|
||||||
|
|
Loading…
Reference in New Issue