public class DefaultTicketBusinessService extends AbstractBusinessService implements TicketBusinessService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultTicketBusinessService() |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic CsTicketModel createTicket(CsTicketParameter ticketParameter)
TicketBusinessServiceCsTicketParametercreateTicket in interface TicketBusinessServiceticketParameter - Ticker creation parameters@Deprecated public CsTicketModel createTicket(CsTicketModel ticket, CsCustomerEventModel creationEvent)
TicketBusinessServicecreateTicket in interface TicketBusinessServiceticket - The new ticketcreationEvent - The creation event to associate with the new ticket@Deprecated public CsTicketModel createTicket(UserModel customer, OrderModel order, CsTicketCategory category, CsTicketPriority priority, EmployeeModel assignedAgent, CsAgentGroupModel assignedGroup, String headline, CsInterventionType interventionType, CsEventReason reason, String creationNotes)
TicketBusinessServicecreateTicket in interface TicketBusinessServicecustomer - The customer the ticket is fororder - The order the ticket relates tocategory - The category of the ticketpriority - The priority of the ticketassignedAgent - The agent who is assigned the ticketassignedGroup - The group who is assigned the ticketheadline - The headline of the ticketinterventionType - The type of intervention that lead to creation of the ticketreason - The reason for the interventioncreationNotes - The notes to add to the creation event of the ticket@Deprecated public CsTicketModel createTicket(UserModel customer, CartModel cart, CsTicketCategory category, CsTicketPriority priority, EmployeeModel assignedAgent, CsAgentGroupModel assignedGroup, String headline, CsInterventionType interventionType, CsEventReason reason, String creationNotes)
TicketBusinessServicecreateTicket in interface TicketBusinessServicecustomer - The customer the ticket is forcart - The cart the ticket relates tocategory - The category of the ticketpriority - The priority of the ticketassignedAgent - The agent who is assigned the ticketassignedGroup - The group who is assigned the ticketheadline - The headline of the ticketinterventionType - The type of intervention that lead to creation of the ticketreason - The reason for the interventioncreationNotes - The notes to add to the creation event of the ticket@Deprecated public CsTicketModel createTicket(UserModel customer, CsTicketCategory category, CsTicketPriority priority, EmployeeModel assignedAgent, CsAgentGroupModel assignedGroup, String headline, CsInterventionType interventionType, CsEventReason reason, String creationNotes)
TicketBusinessServicecreateTicket in interface TicketBusinessServicecustomer - The customer the ticket is forcategory - The category of the ticketpriority - The priority of the ticketassignedAgent - The agent who is assigned the ticketassignedGroup - The group who is assigned the ticketheadline - The headline of the ticketinterventionType - The type of intervention that lead to creation of the ticketreason - The reason for the interventioncreationNotes - The notes to add to the creation event of the ticketprotected CsTicketModel createTicketInternal(CsTicketModel ticket, CsCustomerEventModel creationEvent)
protected CsTicketModel populateTicketDetails(UserModel customer, AbstractOrderModel abstractOrder, CsTicketCategory category, CsTicketPriority priority, EmployeeModel assignedAgent, CsAgentGroupModel assignedGroup, String headline)
public CsTicketModel updateTicket(CsTicketModel ticket) throws TicketException
TicketBusinessServiceupdateTicket in interface TicketBusinessServiceticket - The ticket to update the details ofTicketExceptionpublic CsTicketModel updateTicket(CsTicketModel ticket, String note) throws TicketException
TicketBusinessServiceupdateTicket in interface TicketBusinessServiceticket - The ticket to update the details ofnote - The note to associate with the updateTicketExceptionpublic CsTicketModel setTicketState(CsTicketModel ticket, CsTicketState newState) throws TicketException
TicketBusinessServicesetTicketState in interface TicketBusinessServiceticket - The ticket to change the state ofnewState - The new state of the ticketTicketException - If the ticket has been modifiedpublic CsTicketModel setTicketState(CsTicketModel ticket, CsTicketState newState, String note) throws TicketException
TicketBusinessServicesetTicketState in interface TicketBusinessServiceticket - The ticket to change the state ofnewState - The new state of the ticketnote - The note to associate with the state changeTicketException - If the ticket has been modifiedpublic List<CsTicketState> getTicketNextStates(CsTicketModel ticket)
TicketBusinessServicegetTicketNextStates in interface TicketBusinessServiceticket - The current state of the ticketpublic List<CsTicketState> getTicketNextStates(CsTicketState state)
TicketBusinessServicegetTicketNextStates in interface TicketBusinessServicestate - The state to get the next states frompublic CsTicketModel assignTicketToAgent(CsTicketModel ticket, EmployeeModel agent) throws TicketException
TicketBusinessServiceassignTicketToAgent in interface TicketBusinessServiceticket - The Ticket to assignagent - The Agent to assign the ticket toTicketException - If the ticket has been modifiedpublic CsTicketModel assignTicketToGroup(CsTicketModel ticket, CsAgentGroupModel group) throws TicketException
TicketBusinessServiceassignTicketToGroup in interface TicketBusinessServiceticket - The Ticket to assigngroup - The Group to assign the ticket toTicketException - If the ticket has been modifiedpublic CsCustomerEventModel addNoteToTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note, Collection<MediaModel> attachments)
TicketBusinessServiceaddNoteToTicket in interface TicketBusinessServiceticket - The ticket to add the note tointervention - The interventionType of the notereason - The reason for the interventionnote - The note to addattachments - The attachments to add to the notepublic CsCustomerEventModel addCustomerEmailToTicket(CsTicketModel ticket, CsEventReason reason, String subject, String emailBody, Collection<MediaModel> attachments)
TicketBusinessServiceaddCustomerEmailToTicket in interface TicketBusinessServiceticket - The ticket to add the email toreason - The reason for the emailsubject - The subject of the emailemailBody - The body of the emailattachments - The attachments to add to the emailpublic CsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, String note) throws TicketException
TicketBusinessServiceresolveTicket in interface TicketBusinessServiceticket - The ticket to be resolvedintervention - Intervention TyperesolutionType - The resolution reason for the ticketnote - messageTicketExceptionpublic CsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, String note, Collection<MediaModel> attachments) throws TicketException
TicketBusinessServiceresolveTicket in interface TicketBusinessServiceticket - The ticket to be resolvedintervention - Intervention TyperesolutionType - The resolution reason for the ticketnote - messageattachments - as attachmentsTicketExceptionpublic CsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note) throws TicketException
TicketBusinessServiceunResolveTicket in interface TicketBusinessServiceticket - The ticket to 'unresolve'intervention - The interventionType for the eventreason - The reason for the eventnote - The content of the note to add to the ticketTicketExceptionpublic CsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, String note, Collection<MediaModel> attachments) throws TicketException
TicketBusinessServiceunResolveTicket in interface TicketBusinessServiceticket - The ticket to 'unresolve'intervention - The interventionType for the eventreason - The reason for the eventnote - The content of the note to add to the ticketattachments - as ticket attachmentsTicketExceptionpublic boolean isTicketClosed(CsTicketModel ticket)
TicketBusinessServiceisTicketClosed in interface TicketBusinessServiceticket - The ticket to checkpublic boolean isTicketResolvable(CsTicketModel ticket)
TicketBusinessServiceisTicketResolvable in interface TicketBusinessServiceticket - The ticket to checkpublic CsTicketEventModel getLastEvent(CsTicketModel ticket)
TicketBusinessServicegetLastEvent in interface TicketBusinessServiceticket - The ticket to retrieve the last event forpublic String renderTicketEventText(CsTicketEventModel ticketEvent)
TicketBusinessServicerenderTicketEventText in interface TicketBusinessServiceticketEvent - The ticket to get the description ofpublic void setTicketUpdateStrategy(TicketUpdateStrategy ticketUpdateStrategy)
public void setTicketEventStrategy(TicketEventStrategy ticketEventStrategy)
public void setTicketEventEmailStrategy(TicketEventEmailStrategy ticketEventEmailStrategy)
public void setTicketResolutionStrategy(TicketResolutionStrategy ticketResolutionStrategy)
public void setTicketRenderStrategy(TicketRenderStrategy ticketRenderStrategy)
public TicketEventEmailStrategy getTicketEventEmailStrategy()
public BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
baseSiteService - the baseSiteService to setprotected Converter<CsTicketParameter,CsTicketModel> getTicketParameterConverter()
public void setTicketParameterConverter(Converter<CsTicketParameter,CsTicketModel> ticketParameterConverter)
protected UserService getUserService()
public void setUserService(UserService userService)
protected TicketAttachmentsService getTicketAttachmentsService()
public void setTicketAttachmentsService(TicketAttachmentsService ticketAttachmentsService)
Copyright © 2017 SAP SE. All Rights Reserved.