Class SendEventRegistrationMailTask
java.lang.Object
ch.tocco.nice2.optional.event.api.tasks.eventregistration.SendEventRegistrationMailTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Boolean> PersistTask<Entity,
Boolean>
sends mails for Registrations if
mail_required
is true
and relRegistration_source
is event_registration
returns true if mail was sent, false otherwise
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BusinessUnitManager
protected final EmailTemplateLoadService
protected final L10N
protected final MailFactory
-
Constructor Summary
ConstructorDescriptionSendEventRegistrationMailTask
(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Entity registration, CommandContext commandContext) protected String
getEventConfirmationTemplate
(Entity registration) protected Locale
protected Entity
getRecipientUser
(Entity registration) protected boolean
registrationIsOnWaitingList
(Entity registration) protected boolean
sourceIsNotFlow
(Entity registration) 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
-
Field Details
-
l10N
-
emailTemplateLoadService
-
mailFactory
-
businessUnitManager
-
-
Constructor Details
-
SendEventRegistrationMailTask
public SendEventRegistrationMailTask(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Boolean> - Throws:
Exception
-
getRecipientUser
-
getLocale
-
getEventConfirmationTemplate
-
registrationIsOnWaitingList
-
sourceIsNotFlow
-