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
FieldsModifier and TypeFieldDescriptionprotected final BusinessUnitManagerprotected final EmailTemplateLoadServiceprotected final L10Nprotected final MailFactory -
Constructor Summary
ConstructorsConstructorDescriptionSendEventRegistrationMailTask(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiondoRun(Entity registration, CommandContext commandContext) protected StringgetEventConfirmationTemplate(Entity registration) protected Localeprotected EntitygetRecipientUser(Entity registration) protected booleanregistrationIsOnWaitingList(Entity registration) protected booleansourceIsNotFlow(Entity registration) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface 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:
doRunin interfaceOptionalTask<Entity,Boolean> - Throws:
Exception
-
getRecipientUser
-
getLocale
-
getEventConfirmationTemplate
-
registrationIsOnWaitingList
-
sourceIsNotFlow
-