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
ConstructorDescriptionNewsletterDispatchActionServiceImpl
(TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager) -
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.
-
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:NewsletterDispatchActionService
Dispatches the givenPage
of typenewsletter
as mail to the selected recipients.- Specified by:
sendNewsletter
in interfaceNewsletterDispatchActionService
- 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:
RpcExecutionException
-