Class DefaultTicketEventStrategy
java.lang.Object
de.hybris.platform.ticket.strategies.impl.DefaultTicketEventStrategy
- All Implemented Interfaces:
TicketEventStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttachmentsToEvent(CsTicketEventModel event, Collection<MediaModel> attachments) Create a creation event for the specified ticket TO THE CS Agent.createCreationEventForTicket(CsTicketModel ticket, CsEventReason reason, CsInterventionType interventionType, String text) Create a creation event for the specified ticket.createCustomerEmailForTicket(CsTicketModel ticket, CsEventReason reason, String subject, String emailBody, Collection<MediaModel> attachments) Create a note against the ticket which is sent as an email to the customer the ticket relates tocreateNoteForTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note, Collection<MediaModel> attachments) Create and internal note against the ticket with the specified informationensureTicketEventSetupForCreationEvent(CsTicketModel ticket, CsCustomerEventModel creationEvent) Ensure that the specified creation event is correctly setup and bound to the ticket.protected Stringprotected ModelServiceprotected CsTicketStateprotected Stringprotected TicketEventFactoryprotected voidonTicketCreation(CsTicketModel ticket, CsCustomerEventModel creationEvent) Placeholder for post ticket creation business rulesvoidsetAgentNoteCommentType(String agentNoteCommentType) voidsetCustomerNoteCommentType(String customerNoteCommentType) voidsetEmailCommentType(String emailCommentType) voidsetModelService(ModelService modelService) voidsetOpenState(CsTicketState openState) voidsetTicketCreatedType(String ticketCreatedType) voidsetTicketEventFactory(TicketEventFactory ticketEventFactory)
-
Constructor Details
-
DefaultTicketEventStrategy
public DefaultTicketEventStrategy()
-
-
Method Details
-
createNoteForTicket
public CsCustomerEventModel createNoteForTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note, Collection<MediaModel> attachments) Description copied from interface:TicketEventStrategyCreate and internal note against the ticket with the specified information- Specified by:
createNoteForTicketin interfaceTicketEventStrategy- Parameters:
ticket- The ticket to create the note forintervention- The intervention type of the notereason- The reason for the note's creationnote- The text of the noteattachments- Any attachments which should be added to the note- Returns:
- The newly create note
-
createAssignAgentToTicket
Description copied from interface:TicketEventStrategyCreate a creation event for the specified ticket TO THE CS Agent.- Specified by:
createAssignAgentToTicketin interfaceTicketEventStrategy- Parameters:
ticket- The ticket the creation event is for- Returns:
- CsTicketEventModel
-
createCustomerEmailForTicket
public CsCustomerEventModel createCustomerEmailForTicket(CsTicketModel ticket, CsEventReason reason, String subject, String emailBody, Collection<MediaModel> attachments) Description copied from interface:TicketEventStrategyCreate a note against the ticket which is sent as an email to the customer the ticket relates to- Specified by:
createCustomerEmailForTicketin interfaceTicketEventStrategy- Parameters:
ticket- The ticket to create the note email forreason- The reason for the emailsubject- The subject of the emailemailBody- The body of the emailattachments- Any attachments should be included with the email- Returns:
- The newly create email
-
createCreationEventForTicket
public CsCustomerEventModel createCreationEventForTicket(CsTicketModel ticket, CsEventReason reason, CsInterventionType interventionType, String text) Description copied from interface:TicketEventStrategyCreate a creation event for the specified ticket.- Specified by:
createCreationEventForTicketin interfaceTicketEventStrategy- Parameters:
ticket- The ticket to create the creation event forreason- The reson for the ticket eventinterventionType- The intervention type for the ticket eventtext- The text to add to the creation event- Returns:
- The newly created creation event
-
ensureTicketEventSetupForCreationEvent
public CsCustomerEventModel ensureTicketEventSetupForCreationEvent(CsTicketModel ticket, CsCustomerEventModel creationEvent) Description copied from interface:TicketEventStrategyEnsure that the specified creation event is correctly setup and bound to the ticket. This ensures that all of the manadatory underlying fields on the event are populated.- Specified by:
ensureTicketEventSetupForCreationEventin interfaceTicketEventStrategy- Parameters:
ticket- The ticket the creation event is forcreationEvent- The creation event- Returns:
- The updated creation event
-
onTicketCreation
Placeholder for post ticket creation business rules -
addAttachmentsToEvent
-
setEmailCommentType
-
setTicketCreatedType
-
setTicketEventFactory
-
setOpenState
-
setCustomerNoteCommentType
- Parameters:
customerNoteCommentType- the customerNoteCommentType to set
-
setAgentNoteCommentType
- Parameters:
agentNoteCommentType- the agentNoteCommentType to set
-
getTicketEventFactory
- Returns:
- the ticketEventFactory
-
getTicketCreatedType
- Returns:
- the ticketCreatedType
-
getEmailCommentType
- Returns:
- the emailCommentType
-
getOpenState
- Returns:
- the openState
-
getCustomerNoteCommentType
- Returns:
- the customerNoteCommentType
-
getAgentNoteCommentType
- Returns:
- the agentNoteCommentType
-
getModelService
-
setModelService
-