Class NewsletterDispatchActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.newsletter.impl.actions.NewsletterDispatchActionServiceImpl
- All Implemented Interfaces:
NewsletterDispatchActionService
public class NewsletterDispatchActionServiceImpl
extends Object
implements NewsletterDispatchActionService
Standard implementation of the
NewsletterDispatchActionService interface.-
Constructor Summary
ConstructorsConstructorDescriptionNewsletterDispatchActionServiceImpl(TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidsendNewsletter(String newsletterPagePk, MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, @Nullable org.joda.time.DateTime executionDate, @Nullable org.joda.time.LocalDate expiryDate) Dispatches the givenPageof typenewsletteras mail to the selected recipients.
-
Constructor Details
-
NewsletterDispatchActionServiceImpl
public NewsletterDispatchActionServiceImpl(TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
sendNewsletter
public void sendNewsletter(String newsletterPagePk, MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, @Nullable @Nullable org.joda.time.DateTime executionDate, @Nullable @Nullable org.joda.time.LocalDate expiryDate) throws RpcExecutionException Description copied from interface:NewsletterDispatchActionServiceDispatches the givenPageof typenewsletteras mail to the selected recipients.- Specified by:
sendNewsletterin interfaceNewsletterDispatchActionService- Parameters:
newsletterPagePk- the primary key of thePagemailInfo- theMailActionService.MailInfoneeded by theMailActionServiceselection- theEntityExplorerActionSelectionfor which the newsletter will be sentexecutionDate- theDateTimedeclaring the execution dateexpiryDate- theLocalDatedeclaring the expiry date for the mail archive- Throws:
RpcExecutionException
-