Interface NewsletterDispatchActionService
- All Known Implementing Classes:
NewsletterDispatchActionServiceImpl
public interface NewsletterDispatchActionService
Service to dispatch a newsletters to the selected recipients.
-
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.
-
Method Details
-
sendNewsletter
void sendNewsletter(String newsletterPagePk, MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, @Nullable @Nullable org.joda.time.DateTime executionDate, @Nullable @Nullable org.joda.time.LocalDate expiryDate) throws freemarker.template.TemplateException, RpcExecutionException, URISyntaxException, NoEntityToLoadException, MailException, IOException, UriStoreException, UnresolvableUriException Dispatches the givenPageof typenewsletteras mail to the selected recipients.- 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:
freemarker.template.TemplateExceptionRpcExecutionExceptionURISyntaxExceptionNoEntityToLoadExceptionMailExceptionIOExceptionUriStoreExceptionUnresolvableUriException
-