Class EventRegistrationResponsibleTask
java.lang.Object
ch.tocco.nice2.optional.event.spi.tasks.eventregistration.EventRegistrationResponsibleTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Entity> PersistTask<Entity,
Entity>
@Component
public class EventRegistrationResponsibleTask
extends Object
implements OptionalTask<Entity,Entity>
notifies a responsible user by email, might be a related user or a email directly on the Event
Email_template 'event_registration_admin' is used
-
Constructor Summary
ConstructorDescriptionEventRegistrationResponsibleTask
(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Entity registration, CommandContext commandContext) getLanguage
(@Nullable Entity user) protected Locale
protected @Nullable String
getMailAddress
(Entity event, @Nullable Entity user) protected void
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
-
EventRegistrationResponsibleTask
public EventRegistrationResponsibleTask(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Entity> - Throws:
Exception
-
getMailAddress
-
getLanguage
-
getLocale
-
sendMail
-