git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@128675 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4248c477c9
commit
5d922b5a8b
|
@ -21,6 +21,7 @@ import org.gcube.application.framework.core.session.ASLSession;
|
||||||
import org.gcube.application.framework.core.session.SessionManager;
|
import org.gcube.application.framework.core.session.SessionManager;
|
||||||
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
import org.gcube.applicationsupportlayer.social.ApplicationNotificationsManager;
|
||||||
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
import org.gcube.applicationsupportlayer.social.NotificationsManager;
|
||||||
|
import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingSite;
|
||||||
import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingUser;
|
import org.gcube.applicationsupportlayer.social.shared.SocialNetworkingUser;
|
||||||
import org.gcube.common.portal.GCubePortalConstants;
|
import org.gcube.common.portal.GCubePortalConstants;
|
||||||
import org.gcube.common.portal.PortalContext;
|
import org.gcube.common.portal.PortalContext;
|
||||||
|
@ -243,7 +244,8 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
|
|
||||||
//send the notification about this posts to everyone in the group if notifyGroup is true
|
//send the notification about this posts to everyone in the group if notifyGroup is true
|
||||||
if (pLevel == PrivacyLevel.SINGLE_VRE && vreOrgId != null && notifyGroup) {
|
if (pLevel == PrivacyLevel.SINGLE_VRE && vreOrgId != null && notifyGroup) {
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(getThreadLocalRequest(),
|
NotificationsManager nm = new ApplicationNotificationsManager(
|
||||||
|
new SocialNetworkingSite(getThreadLocalRequest()),
|
||||||
vreScope2Set,
|
vreScope2Set,
|
||||||
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
||||||
NEWS_FEED_PORTLET_CLASSNAME);
|
NEWS_FEED_PORTLET_CLASSNAME);
|
||||||
|
@ -253,7 +255,8 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
}
|
}
|
||||||
//send the notification to the mentioned users
|
//send the notification to the mentioned users
|
||||||
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(getThreadLocalRequest(),
|
NotificationsManager nm = new ApplicationNotificationsManager(
|
||||||
|
new SocialNetworkingSite(getThreadLocalRequest()),
|
||||||
vreScope2Set,
|
vreScope2Set,
|
||||||
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
||||||
NEWS_FEED_PORTLET_CLASSNAME);
|
NEWS_FEED_PORTLET_CLASSNAME);
|
||||||
|
@ -448,7 +451,8 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
|
|
||||||
//send the notification about this posts to everyone in the group if notifyGroup is true
|
//send the notification about this posts to everyone in the group if notifyGroup is true
|
||||||
if (pLevel == PrivacyLevel.SINGLE_VRE && vreOrgId != null && notifyGroup) {
|
if (pLevel == PrivacyLevel.SINGLE_VRE && vreOrgId != null && notifyGroup) {
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(getThreadLocalRequest(),
|
NotificationsManager nm = new ApplicationNotificationsManager(
|
||||||
|
new SocialNetworkingSite(getThreadLocalRequest()),
|
||||||
vreScope2Set,
|
vreScope2Set,
|
||||||
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
||||||
NEWS_FEED_PORTLET_CLASSNAME);
|
NEWS_FEED_PORTLET_CLASSNAME);
|
||||||
|
@ -458,7 +462,8 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
||||||
}
|
}
|
||||||
//send the notification to the mentioned users
|
//send the notification to the mentioned users
|
||||||
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
if (mentionedUsers != null && mentionedUsers.size() > 0) {
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(getThreadLocalRequest(),
|
NotificationsManager nm = new ApplicationNotificationsManager(
|
||||||
|
new SocialNetworkingSite(getThreadLocalRequest()),
|
||||||
vreScope2Set,
|
vreScope2Set,
|
||||||
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
new SocialNetworkingUser(username, email, fullName, thumbnailAvatarURL),
|
||||||
NEWS_FEED_PORTLET_CLASSNAME);
|
NEWS_FEED_PORTLET_CLASSNAME);
|
||||||
|
|
Loading…
Reference in New Issue