Class MailingListMailAction
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.widget.api.AbstractWidgetRestResource
ch.tocco.nice2.optional.event.impl.widget.mailinglist.MailingListMailAction
- All Implemented Interfaces:
RestResource
@Path("/actions/MailingListMailAction")
public class MailingListMailAction
extends AbstractWidgetRestResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
MailingListMailAction
(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EntityBeanRebinder entityBeanRebinder, SelectionService selectionService, Context context, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, TextResources textResources, WidgetConfigService widgetConfigService) -
Method Summary
Modifier and TypeMethodDescriptionsendEmails
(MailingListMailAction.MailActionProperties mailActionProperties) sends emails to input recipients as well as configured CC addressesMethods inherited from class ch.tocco.nice2.widget.api.AbstractWidgetRestResource
loadConfigValue, retrieveWidgetConfig
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
MailingListMailAction
protected MailingListMailAction(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EntityBeanRebinder entityBeanRebinder, SelectionService selectionService, Context context, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory, TextResources textResources, WidgetConfigService widgetConfigService)
-
-
Method Details
-
sendEmails
@POST @Path("/send") @Consumes("application/json") @Produces("application/json") public MailingListMailAction.MailResponse sendEmails(MailingListMailAction.MailActionProperties mailActionProperties) sends emails to input recipients as well as configured CC addresses
-