Class EmailRelationConfigTask
java.lang.Object
ch.tocco.nice2.optional.event.impl.flows.usereventregistration.EmailRelationConfigTask
- All Implemented Interfaces:
OptionalTask<List<PrimaryKey>,
,Void> PersistTask<List<PrimaryKey>,
Void>
used to send mails to all users that where defined in the
Email_relation_config
passed to the flow-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
bean class to be used withEmailRelationConfigTask
to send customized emails from Registration entities -
Constructor Summary
ConstructorDescriptionEmailRelationConfigTask
(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EmailRelationConfigTask.EmailTemplateConfiguration[] mailTemplates) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(List<PrimaryKey> registrationKeys, CommandContext commandContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
EmailRelationConfigTask
public EmailRelationConfigTask(EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, EmailRelationConfigTask.EmailTemplateConfiguration[] mailTemplates)
-
-
Method Details
-
doRun
public Void doRun(List<PrimaryKey> registrationKeys, CommandContext commandContext) throws Exception - Specified by:
doRun
in interfaceOptionalTask<List<PrimaryKey>,
Void> - Throws:
Exception
-