From b047fda5bb08008180e5753b96066f21a5bf1da3 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 3 Feb 2017 13:57:24 +0000 Subject: [PATCH] minor refactore git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-mail-servlet@142163 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/changelog.xml | 4 ++++ pom.xml | 2 +- src/main/java/org/gcube/portal/socialmail/PeriodicTask.java | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/distro/changelog.xml b/distro/changelog.xml index 2630d8b..e7b5e66 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,4 +1,8 @@ + + Minor refactor for comment replies + Added possibility to change poller time at runtime as well as to quit it by editing a property file in the server diff --git a/pom.xml b/pom.xml index 8b47c24..b958867 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.gcube.portal social-mail-servlet war - 2.1.0-SNAPSHOT + 2.1.1-SNAPSHOT social-mail-servlet Webapp This component read periodically email replies from user wanting to reply to a post via email diff --git a/src/main/java/org/gcube/portal/socialmail/PeriodicTask.java b/src/main/java/org/gcube/portal/socialmail/PeriodicTask.java index 4fbf2b4..6d736c7 100644 --- a/src/main/java/org/gcube/portal/socialmail/PeriodicTask.java +++ b/src/main/java/org/gcube/portal/socialmail/PeriodicTask.java @@ -496,8 +496,9 @@ public class PeriodicTask implements Runnable { Thread likesThread = new Thread(new LikeNotificationsThread(commentText, nm, favorites, feedOwnerId, comment.getKey())); likesThread.start(); + UserManager userManager = new LiferayUserManager(); //notify the other users who commented this post (excluding the ones above) - Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(socialStore, fakeSession.getUsername(), comment.getFeedid(), commentText, nm, feedOwnerId, comment.getKey(), favorites)); + Thread commentsNotificationthread = new Thread(new CommentNotificationsThread(socialStore, userManager, fakeSession.getUsername(), comment.getFeedid(), commentText, nm, feedOwnerId, comment.getKey(), favorites)); commentsNotificationthread.start(); } /**