added renamedFolder Notification
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@71606 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
65c7a4602d
commit
75618683c3
|
@ -111,6 +111,27 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
||||||
|
|
||||||
return saveNotification(not);
|
return saveNotification(not);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @throws InternalErrorException
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws InternalErrorException {
|
||||||
|
Notification not = new Notification(
|
||||||
|
UUID.randomUUID().toString(),
|
||||||
|
NotificationType.WP_FOLDER_SHARE,
|
||||||
|
userIdToNotify, //user no notify
|
||||||
|
renamedFolderId, //the
|
||||||
|
new Date(),
|
||||||
|
"?oid="+renamedFolderId,
|
||||||
|
"renamed your shared folder "+ previousName +" as " + newName,
|
||||||
|
false,
|
||||||
|
aslSession.getUsername(),
|
||||||
|
aslSession.getUserFullName(),
|
||||||
|
aslSession.getUserAvatarId());
|
||||||
|
|
||||||
|
return saveNotification(not);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
* @throws UserManagementPortalException
|
* @throws UserManagementPortalException
|
||||||
|
|
|
@ -18,6 +18,17 @@ public interface NotificationsManager {
|
||||||
* @return true if the notification is correctly delivered, false otherwise
|
* @return true if the notification is correctly delivered, false otherwise
|
||||||
*/
|
*/
|
||||||
boolean notifyFolderSharing(String userIdToNotify, WorkspaceFolder sharedFolder) throws Exception;
|
boolean notifyFolderSharing(String userIdToNotify, WorkspaceFolder sharedFolder) throws Exception;
|
||||||
|
/**
|
||||||
|
* use to notify a user he got a workspace folder renamed
|
||||||
|
*
|
||||||
|
* @param userIdToNotify the user you want to notify
|
||||||
|
* @param previousName the previous name of the folder
|
||||||
|
* @param newName the new name of the folder
|
||||||
|
* @param renamedFolderId the folderId
|
||||||
|
* @return true if the notification is correctly delivered, false otherwise
|
||||||
|
*/
|
||||||
|
boolean notifyFolderRenaming(String userIdToNotify, String previousName, String newName, String renamedFolderId) throws Exception;
|
||||||
|
/**
|
||||||
/**
|
/**
|
||||||
* use to notify a user that a new user was added in on of his workspace shared folder
|
* use to notify a user that a new user was added in on of his workspace shared folder
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue