com.atlassian.confluence.plugins.dailysummary.components.impl
Class DefaultSummaryEmailTaskFactory

java.lang.Object
  extended by com.atlassian.confluence.plugins.dailysummary.components.impl.DefaultSummaryEmailTaskFactory
All Implemented Interfaces:
SummaryEmailTaskFactory

public class DefaultSummaryEmailTaskFactory
extends java.lang.Object
implements SummaryEmailTaskFactory


Constructor Summary
DefaultSummaryEmailTaskFactory(FormatSettingsManager formatSettingsManager, LocaleManager localeManager, UserAccessor userAccesor, SettingsManager settingsManager, com.atlassian.sal.api.message.I18nResolver i18n, SingleUseUnsubscribeTokenManager singleUseTokenManager, DataSourceFactory dataSourceFactory, VelocityHelperService velocityHelper, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, NotificationRenderManager notificationRenderManager)
           
 
Method Summary
 com.atlassian.fugue.Maybe<com.atlassian.mail.queue.MailQueueItem> createEmailTask(com.atlassian.user.User user, java.util.Date date)
          Convenience method for a recommended content email for all spaces.
 com.atlassian.fugue.Maybe<com.atlassian.mail.queue.MailQueueItem> createEmailTask(com.atlassian.user.User user, java.util.Date date, Space space)
          Create a recommended content email.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSummaryEmailTaskFactory

public DefaultSummaryEmailTaskFactory(FormatSettingsManager formatSettingsManager,
                                      LocaleManager localeManager,
                                      UserAccessor userAccesor,
                                      SettingsManager settingsManager,
                                      com.atlassian.sal.api.message.I18nResolver i18n,
                                      SingleUseUnsubscribeTokenManager singleUseTokenManager,
                                      DataSourceFactory dataSourceFactory,
                                      VelocityHelperService velocityHelper,
                                      com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
                                      NotificationRenderManager notificationRenderManager)
Method Detail

createEmailTask

public com.atlassian.fugue.Maybe<com.atlassian.mail.queue.MailQueueItem> createEmailTask(com.atlassian.user.User user,
                                                                                         java.util.Date date)
Description copied from interface: SummaryEmailTaskFactory
Convenience method for a recommended content email for all spaces.

Specified by:
createEmailTask in interface SummaryEmailTaskFactory
See Also:
SummaryEmailTaskFactory.createEmailTask(User, Date, Space)

createEmailTask

public com.atlassian.fugue.Maybe<com.atlassian.mail.queue.MailQueueItem> createEmailTask(com.atlassian.user.User user,
                                                                                         java.util.Date date,
                                                                                         @Nullable
                                                                                         Space space)
Description copied from interface: SummaryEmailTaskFactory
Create a recommended content email.

Specified by:
createEmailTask in interface SummaryEmailTaskFactory
Parameters:
user - the user for whom the content is retrieved
date - the (current) date describing the minimum age boundary to scope the content
space - the space the recommended content should be constrained to
Returns:
maybe if there's recommended content for the user


Copyright © 2003-2014 Atlassian. All Rights Reserved.