public class DefaultTicketEventStrategy extends java.lang.Object implements TicketEventStrategy
| Constructor and Description |
|---|
DefaultTicketEventStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttachmentsToEvent(CsTicketEventModel event,
java.util.Collection<MediaModel> attachments) |
CsCustomerEventModel |
createAssignAgentToTicket(CsTicketModel ticket)
Create a creation event for the specified ticket TO THE CS Agent.
|
CsCustomerEventModel |
createCreationEventForTicket(CsTicketModel ticket,
CsEventReason reason,
CsInterventionType interventionType,
java.lang.String text)
Create a creation event for the specified ticket.
|
CsCustomerEventModel |
createCustomerEmailForTicket(CsTicketModel ticket,
CsEventReason reason,
java.lang.String subject,
java.lang.String emailBody,
java.util.Collection<MediaModel> attachments)
Create a note against the ticket which is sent as an email to the customer the ticket relates to
|
CsCustomerEventModel |
createNoteForTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Create and internal note against the ticket with the specified information
|
CsCustomerEventModel |
ensureTicketEventSetupForCreationEvent(CsTicketModel ticket,
CsCustomerEventModel creationEvent)
Ensure that the specified creation event is correctly setup and bound to the ticket.
|
java.lang.String |
getAgentNoteCommentType() |
java.lang.String |
getCustomerNoteCommentType() |
protected java.lang.String |
getEmailCommentType() |
protected ModelService |
getModelService() |
protected CsTicketState |
getOpenState() |
protected java.lang.String |
getTicketCreatedType() |
protected TicketEventFactory |
getTicketEventFactory() |
protected void |
onTicketCreation(CsTicketModel ticket,
CsCustomerEventModel creationEvent)
Placeholder for post ticket creation business rules
|
void |
setAgentNoteCommentType(java.lang.String agentNoteCommentType) |
void |
setCustomerNoteCommentType(java.lang.String customerNoteCommentType) |
void |
setEmailCommentType(java.lang.String emailCommentType) |
void |
setModelService(ModelService modelService) |
void |
setOpenState(CsTicketState openState) |
void |
setTicketCreatedType(java.lang.String ticketCreatedType) |
void |
setTicketEventFactory(TicketEventFactory ticketEventFactory) |
public CsCustomerEventModel createNoteForTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note, java.util.Collection<MediaModel> attachments)
TicketEventStrategycreateNoteForTicket in interface TicketEventStrategyticket - 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 notepublic CsCustomerEventModel createAssignAgentToTicket(CsTicketModel ticket)
TicketEventStrategycreateAssignAgentToTicket in interface TicketEventStrategyticket - The ticket the creation event is forpublic CsCustomerEventModel createCustomerEmailForTicket(CsTicketModel ticket, CsEventReason reason, java.lang.String subject, java.lang.String emailBody, java.util.Collection<MediaModel> attachments)
TicketEventStrategycreateCustomerEmailForTicket in interface TicketEventStrategyticket - 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 emailpublic CsCustomerEventModel createCreationEventForTicket(CsTicketModel ticket, CsEventReason reason, CsInterventionType interventionType, java.lang.String text)
TicketEventStrategycreateCreationEventForTicket in interface TicketEventStrategyticket - 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 eventpublic CsCustomerEventModel ensureTicketEventSetupForCreationEvent(CsTicketModel ticket, CsCustomerEventModel creationEvent)
TicketEventStrategyensureTicketEventSetupForCreationEvent in interface TicketEventStrategyticket - The ticket the creation event is forcreationEvent - The creation eventprotected void onTicketCreation(CsTicketModel ticket, CsCustomerEventModel creationEvent)
protected void addAttachmentsToEvent(CsTicketEventModel event, java.util.Collection<MediaModel> attachments)
public void setEmailCommentType(java.lang.String emailCommentType)
public void setTicketCreatedType(java.lang.String ticketCreatedType)
public void setTicketEventFactory(TicketEventFactory ticketEventFactory)
public void setOpenState(CsTicketState openState)
public void setCustomerNoteCommentType(java.lang.String customerNoteCommentType)
customerNoteCommentType - the customerNoteCommentType to setpublic void setAgentNoteCommentType(java.lang.String agentNoteCommentType)
agentNoteCommentType - the agentNoteCommentType to setprotected TicketEventFactory getTicketEventFactory()
protected java.lang.String getTicketCreatedType()
protected java.lang.String getEmailCommentType()
protected CsTicketState getOpenState()
public java.lang.String getCustomerNoteCommentType()
public java.lang.String getAgentNoteCommentType()
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.