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
ConstructorsConstructorDescriptionEventRegistrationResponsibleTask(L10N l10N, EmailTemplateLoadService emailTemplateLoadService, MailFactory mailFactory, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiondoRun(Entity registration, CommandContext commandContext) getLanguage(@Nullable Entity user) protected Localeprotected @Nullable StringgetMailAddress(Entity event, @Nullable Entity user) protected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
runMethods 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:
doRunin interfaceOptionalTask<Entity,Entity> - Throws:
Exception
-
getMailAddress
-
getLanguage
-
getLocale
-
sendMail
-