Class StintAuctionFlowServiceImpl
java.lang.Object
ch.tocco.nice2.optional.stintauction.impl.actions.StintAuctionFlowServiceImpl
- All Implemented Interfaces:
StintAuctionFlowService
-
Constructor Summary
ConstructorDescriptionStintAuctionFlowServiceImpl
(Context context, PrincipalService principalService, SecurityManager securityManager, BusinessUnitManager businessUnitManager, EntityDefaultValueService entityDefaultValueService, MailFactory mailFactory, EmailTemplateLoadService emailTemplateLoadService, L10N l10N, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canLecturerApply
(String eventKey) void
registerLecturer
(Entity event, @Nullable String emailConfirmationTemplate, @Nullable String notificationResponsibleTemplate) Creates Lecturer_bookings for StintAuctionFlow and sends confirmation and notification mails if neededvoid
registerLecturer
(String eventKey, @Nullable String emailConfirmationTemplate, @Nullable String notificationResponsibleTemplate)
-
Constructor Details
-
StintAuctionFlowServiceImpl
public StintAuctionFlowServiceImpl(Context context, PrincipalService principalService, SecurityManager securityManager, BusinessUnitManager businessUnitManager, EntityDefaultValueService entityDefaultValueService, MailFactory mailFactory, EmailTemplateLoadService emailTemplateLoadService, L10N l10N, ConstrictionManager constrictionManager, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
registerLecturer
public void registerLecturer(String eventKey, @Nullable @Nullable String emailConfirmationTemplate, @Nullable @Nullable String notificationResponsibleTemplate) throws UnsupportedEncodingException, TextresourceInformationException, jakarta.mail.internet.AddressException - Specified by:
registerLecturer
in interfaceStintAuctionFlowService
- Throws:
UnsupportedEncodingException
TextresourceInformationException
jakarta.mail.internet.AddressException
-
registerLecturer
public void registerLecturer(Entity event, @Nullable @Nullable String emailConfirmationTemplate, @Nullable @Nullable String notificationResponsibleTemplate) throws UnsupportedEncodingException, TextresourceInformationException, jakarta.mail.internet.AddressException Description copied from interface:StintAuctionFlowService
Creates Lecturer_bookings for StintAuctionFlow and sends confirmation and notification mails if needed- Specified by:
registerLecturer
in interfaceStintAuctionFlowService
- Parameters:
event
- the Event, for which the current user applies to work as lectureremailConfirmationTemplate
- the unique_id of the Email_template, what is used to send a confirmation e-mail to the applying lecturernotificationResponsibleTemplate
- the unique_id of the Email_template, what is used to send a notification e-mail to the event responsible User (Event.relUser)- Throws:
UnsupportedEncodingException
TextresourceInformationException
jakarta.mail.internet.AddressException
-
canLecturerApply
- Specified by:
canLecturerApply
in interfaceStintAuctionFlowService
-