diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java index 2f49492..01c3b8b 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java @@ -149,7 +149,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "shared the workspace folder \""+ sharedFolderName +"\" with you", false, currUser.getUsername(), @@ -170,7 +170,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify unsharedFolderId, new Date(), - getApplicationUrl()+"?itemid="+unsharedFolderId, + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+unsharedFolderId, "unshared the workspace folder \""+ unsharedFolderName+"\"", false, currUser.getUsername(), @@ -192,7 +192,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "upgraded you to Administrator of the workspace folder \""+ sharedFolderName+"\"", false, currUser.getUsername(), @@ -214,7 +214,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "downgraded you from Administrator of the workspace folder \""+ sharedFolderName+"\"", false, currUser.getUsername(), @@ -236,7 +236,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify renamedFolderId, //the new Date(), - getApplicationUrl()+"?itemid="+renamedFolderId, + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+renamedFolderId, "renamed your shared folder \""+ previousName +"\" as \"" + newName+"\"", false, currUser.getUsername(), @@ -261,7 +261,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "added "+ user.getFullname() +" to your workspace shared folder \""+ sharedFolder.getName()+"\"", false, currUser.getUsername(), @@ -292,7 +292,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "added "+ addedUsersFullNames +" to your workspace shared folder \""+ sharedFolder.getName()+"\"", false, currUser.getUsername(), @@ -315,7 +315,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), "unshared his shared folder \""+ sharedFolder.getName() + "\" from your workspace", false, currUser.getUsername(), @@ -340,7 +340,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify item.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+item.getParent().getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+item.getParent().getId(), notifyText, false, currUser.getUsername(), @@ -364,7 +364,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify item.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), notifyText, false, currUser.getUsername(), @@ -388,7 +388,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify sharedFolder.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+sharedFolder.getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+sharedFolder.getId(), notifyText, false, currUser.getUsername(), @@ -412,7 +412,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify item.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+item.getParent().getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+item.getParent().getId(), notifyText, false, currUser.getUsername(), @@ -436,7 +436,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen userIdToNotify, //user no notify renamedItem.getId(), //the new Date(), - getApplicationUrl()+"?itemid="+renamedItem.getParent().getId(), + siteLandingPagePath + GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL +"?itemid="+renamedItem.getParent().getId(), notifyText, false, currUser.getUsername(),