com.atlassian.confluence.plugins.dailysummary.components.impl
Class DefaultSummaryEmailService
java.lang.Object
com.atlassian.confluence.plugins.dailysummary.components.impl.DefaultSummaryEmailService
- All Implemented Interfaces:
- SummaryEmailService
public class DefaultSummaryEmailService
- extends java.lang.Object
- implements SummaryEmailService
Method Summary |
boolean |
sendEmail(com.atlassian.user.User user,
java.util.Date date)
Send a summary email to a user with content generated with
respect to the given date. |
int |
sendEmailForDate(java.util.Date date)
Send email to any users that have mail enabled for the
specific datetime. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIL_QUEUE_NAME
protected static final java.lang.String MAIL_QUEUE_NAME
- See Also:
- Constant Field Values
DefaultSummaryEmailService
public DefaultSummaryEmailService(SummaryEmailTaskFactory taskFactory,
com.atlassian.core.task.MultiQueueTaskManager taskManager,
SummaryEmailNotificationManager notificationManager,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
sendEmailForDate
public int sendEmailForDate(java.util.Date date)
- Description copied from interface:
SummaryEmailService
- Send email to any users that have mail enabled for the
specific datetime. Content is generated with respect to the
given date and the users preferences for the period of time that
they would like to receive the email (weekly or daily)
- Specified by:
sendEmailForDate
in interface SummaryEmailService
- Returns:
- the number of emails processed successfully
sendEmail
public boolean sendEmail(com.atlassian.user.User user,
java.util.Date date)
- Description copied from interface:
SummaryEmailService
- Send a summary email to a user with content generated with
respect to the given date.
The email is not sent if there is no content available for the user.
- Specified by:
sendEmail
in interface SummaryEmailService
- Returns:
- true if the email was sent
Copyright © 2003-2013 Atlassian. All Rights Reserved.