Interface NewsletterDispatchActionService
- All Known Implementing Classes:
NewsletterDispatchActionServiceImpl
public interface NewsletterDispatchActionService
Service to dispatch a newsletters to the selected recipients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendNewsletter
(String newsletterPagePk, MailActionService.MailInfo mailInfo, EntityExplorerActionSelection selection, @Nullable org.joda.time.DateTime executionDate, @Nullable org.joda.time.LocalDate expiryDate) Dispatches the givenPage
of typenewsletter
as 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 givenPage
of typenewsletter
as mail to the selected recipients.- Parameters:
newsletterPagePk
- the primary key of thePage
mailInfo
- theMailActionService.MailInfo
needed by theMailActionService
selection
- theEntityExplorerActionSelection
for which the newsletter will be sentexecutionDate
- theDateTime
declaring the execution dateexpiryDate
- theLocalDate
declaring the expiry date for the mail archive- Throws:
freemarker.template.TemplateException
RpcExecutionException
URISyntaxException
NoEntityToLoadException
MailException
IOException
UriStoreException
UnresolvableUriException
-