Class DefaultTicketEventEmailStrategy
java.lang.Object
de.hybris.platform.ticket.strategies.impl.DefaultTicketEventEmailStrategy
- All Implemented Interfaces:
TicketEventEmailStrategy
Default implementation of
TicketEventEmailStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CsTicketEmailModelconstructAndSendEmail(AbstractTicketContext ticketContext, CsTicketEventEmailConfigurationModel config) protected AbstractTicketContextcreateContextForEvent(CsTicketEventEmailConfigurationModel config, CsTicketModel ticket, CsTicketEventModel event) protected List<CsTicketEventEmailConfigurationModel>getApplicableConfigs(CsTicketEventModel event, CsEmailRecipients recepientType) protected ModelServiceprotected org.apache.commons.mail.Emailprotected StringvoidsendEmailsForAssignAgentTicketEvent(CsTicketModel ticket, CsTicketEventModel event, CsEmailRecipients recepientType) Send emails an email to the cs agent or agent group.voidsendEmailsForEvent(CsTicketModel ticket, CsTicketEventModel event) Send emails relating to the specified event.voidsetFlexibleSearch(FlexibleSearchService flexibleSearch) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService) voidsetRecipientTypeToContextClassMap(Map<CsEmailRecipients, String> recipientTypeToContextClassMap) voidsetRendererService(RendererService rendererService)
-
Constructor Details
-
DefaultTicketEventEmailStrategy
public DefaultTicketEventEmailStrategy()
-
-
Method Details
-
sendEmailsForEvent
Description copied from interface:TicketEventEmailStrategySend emails relating to the specified event. It is down to the implementation of this interface to identify how / who what etc. emails should be sent for the given event- Specified by:
sendEmailsForEventin interfaceTicketEventEmailStrategy- Parameters:
ticket- The ticket the email relates toevent- The event to send an event for
-
sendEmailsForAssignAgentTicketEvent
public void sendEmailsForAssignAgentTicketEvent(CsTicketModel ticket, CsTicketEventModel event, CsEmailRecipients recepientType) Description copied from interface:TicketEventEmailStrategySend emails an email to the cs agent or agent group.- Specified by:
sendEmailsForAssignAgentTicketEventin interfaceTicketEventEmailStrategy
-
setFlexibleSearch
-
setMediaService
-
setRecipientTypeToContextClassMap
public void setRecipientTypeToContextClassMap(Map<CsEmailRecipients, String> recipientTypeToContextClassMap) -
setRendererService
-
constructAndSendEmail
protected CsTicketEmailModel constructAndSendEmail(AbstractTicketContext ticketContext, CsTicketEventEmailConfigurationModel config) -
createContextForEvent
protected AbstractTicketContext createContextForEvent(CsTicketEventEmailConfigurationModel config, CsTicketModel ticket, CsTicketEventModel event) -
getApplicableConfigs
protected List<CsTicketEventEmailConfigurationModel> getApplicableConfigs(CsTicketEventModel event, CsEmailRecipients recepientType) -
getPreConfiguredEmail
protected org.apache.commons.mail.Email getPreConfiguredEmail() throws org.apache.commons.mail.EmailException- Throws:
org.apache.commons.mail.EmailException
-
getTicketEventCommentTypeString
-
getModelService
-
setModelService
-