public class DefaultTicketEventStrategy extends AbstractBusinessService implements TicketEventStrategy
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultTicketEventStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttachmentsToEvent(CsTicketEventModel event,
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,
String text)
Create a creation event for the specified ticket.
|
CsCustomerEventModel |
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 to
|
CsCustomerEventModel |
createNoteForTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
String note,
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.
|
String |
getAgentNoteCommentType() |
String |
getCustomerNoteCommentType() |
protected String |
getEmailCommentType() |
String |
getNoteCommentType()
Deprecated.
|
protected CsTicketState |
getOpenState() |
protected String |
getTicketCreatedType() |
protected TicketEventFactory |
getTicketEventFactory() |
protected void |
onTicketCreation(CsTicketModel ticket,
CsCustomerEventModel creationEvent)
Placeholder for post ticket creation business rules
|
void |
setAgentNoteCommentType(String agentNoteCommentType) |
void |
setCustomerNoteCommentType(String customerNoteCommentType) |
void |
setEmailCommentType(String emailCommentType) |
void |
setNoteCommentType(String noteCommentType) |
void |
setOpenState(CsTicketState openState) |
void |
setTicketCreatedType(String ticketCreatedType) |
void |
setTicketEventFactory(TicketEventFactory ticketEventFactory) |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic CsCustomerEventModel createNoteForTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note, 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, String subject, String emailBody, 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, 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, Collection<MediaModel> attachments)
public void setEmailCommentType(String emailCommentType)
public void setTicketCreatedType(String ticketCreatedType)
public void setTicketEventFactory(TicketEventFactory ticketEventFactory)
public void setOpenState(CsTicketState openState)
public void setNoteCommentType(String noteCommentType)
noteCommentType - the noteCommentType to setpublic void setCustomerNoteCommentType(String customerNoteCommentType)
customerNoteCommentType - the customerNoteCommentType to setpublic void setAgentNoteCommentType(String agentNoteCommentType)
agentNoteCommentType - the agentNoteCommentType to setprotected TicketEventFactory getTicketEventFactory()
protected String getTicketCreatedType()
protected String getEmailCommentType()
protected CsTicketState getOpenState()
@Deprecated public String getNoteCommentType()
public String getCustomerNoteCommentType()
public String getAgentNoteCommentType()
Copyright © 2017 SAP SE. All Rights Reserved.