Revision 58702
Added by Argiro Kokogiannaki almost 4 years ago
EmailScheduler.java | ||
---|---|---|
50 | 50 |
logger.debug("Initializing EmailScheduler with beautySleep " + beautySleep + " and begin time " + targetHour + ":" + targetMinute + ":" + targetSecond + " and email sender " + emailSender); |
51 | 51 |
delay = getInitialDelaySeconds(Integer.parseInt(targetHour), Integer.parseInt(targetMinute), Integer.parseInt(targetSecond)); |
52 | 52 |
logger.debug("EmailScheduler will wait " + delay + " seconds"); |
53 |
|
|
53 |
logger.debug("Send mail to community managers: " +this.emailSender.isNotifyCommunityManagers()); |
|
54 |
logger.debug("Send mail to project managers: " +this.emailSender.isNotifyProjectManagers()); |
|
54 | 55 |
final ScheduledFuture<?> resetHandle = scheduler.scheduleAtFixedRate(emailSender, delay, Integer.parseInt(beautySleep), SECONDS); |
55 | 56 |
} else { |
56 | 57 |
logger.debug("Shutting down EmailScheduler for claim notifications"); |
Also available in: Unified diff
Update email Sender and Scheduler:
rename property emailScheduler.sendEmailNotifications to services.claims.mail.sendEmailNotifications
Add properties to enable/disable notifications for specific entities:
services.claims.mail.notifyCommunityManagers
services.claims.mail.notifyProjectManagers