public interface TicketBusinessService
| Modifier and Type | Method and Description |
|---|---|
CsCustomerEventModel |
addCustomerEmailToTicket(CsTicketModel ticket,
CsEventReason reason,
java.lang.String subject,
java.lang.String emailBody,
java.util.Collection<MediaModel> attachments)
Add a customer email to the specified ticket.
|
CsCustomerEventModel |
addNoteToTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Add a note to the specified ticket.
|
CsTicketModel |
assignTicketToAgent(CsTicketModel ticket,
EmployeeModel agent)
Sets the assignedAgent of the Ticket, i.e.
|
CsTicketModel |
assignTicketToGroup(CsTicketModel ticket,
CsAgentGroupModel group)
Sets the assignedGroup of the Ticket, i.e.
|
CsTicketModel |
createTicket(CsTicketModel ticket,
CsCustomerEventModel creationEvent)
Deprecated.
since 6.0 use
createTicket(CsTicketParameter) instead |
CsTicketModel |
createTicket(CsTicketParameter ticketParameter)
Create a new ticket with the parameters defined in
CsTicketParameter |
CsTicketEventModel |
getLastEvent(CsTicketModel ticket)
Returns the last event on the ticket.
|
java.util.List<CsTicketState> |
getTicketNextStates(CsTicketModel ticket)
Returns a list of states that the passed ticket can move to according to configured rules.
|
java.util.List<CsTicketState> |
getTicketNextStates(CsTicketState state)
Get the list of states which can come after the passed on
|
boolean |
isTicketClosed(CsTicketModel ticket)
Find out whether a ticket is closed.
|
boolean |
isTicketResolvable(CsTicketModel ticket)
Find out whether a ticket is resolvable.
|
java.lang.String |
renderTicketEventText(CsTicketEventModel ticket)
Get a description of a ticket for rendering on front ends
|
CsTicketResolutionEventModel |
resolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsResolutionType resolutionType,
java.lang.String note)
Resolve a ticket and add the associated resolution event.
|
CsTicketResolutionEventModel |
resolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsResolutionType resolutionType,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Resolve a ticket and add the associated resolution event.
|
CsTicketModel |
setTicketState(CsTicketModel ticket,
CsTicketState newState)
Set the state of a ticket.
|
CsTicketModel |
setTicketState(CsTicketModel ticket,
CsTicketState newState,
java.lang.String note)
Set the state of a ticket.
|
CsCustomerEventModel |
unResolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note)
Reverse the resolution of a ticket and add a note to it.
|
CsCustomerEventModel |
unResolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Reverse the resolution of a ticket and add a note to it.
|
CsTicketModel |
updateTicket(CsTicketModel ticket)
Update the details of a ticket.
|
CsTicketModel |
updateTicket(CsTicketModel ticket,
java.lang.String note)
Update the details of a ticket.
|
CsTicketModel createTicket(CsTicketParameter ticketParameter)
CsTicketParameterticketParameter - Ticker creation parameters@Deprecated CsTicketModel createTicket(CsTicketModel ticket, CsCustomerEventModel creationEvent)
createTicket(CsTicketParameter) insteadticket - The new ticketcreationEvent - The creation event to associate with the new ticketCsTicketModel updateTicket(CsTicketModel ticket) throws TicketException
ticket - The ticket to update the details ofTicketException - If the ticket is null or the update is not permittedCsTicketModel updateTicket(CsTicketModel ticket, java.lang.String note) throws TicketException
ticket - The ticket to update the details ofnote - The note to associate with the updateTicketException - TicketException
In case if:
1)the ticket is null
2)the note is null or empty
3)the update is not permittedCsTicketModel setTicketState(CsTicketModel ticket, CsTicketState newState) throws TicketException
ticket - The ticket to change the state ofnewState - The new state of the ticketTicketException - If the ticket has been modifiedCsTicketModel setTicketState(CsTicketModel ticket, CsTicketState newState, java.lang.String note) throws TicketException
ticket - 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 modifiedCsTicketModel assignTicketToAgent(CsTicketModel ticket, EmployeeModel agent) throws TicketException
ticket - The Ticket to assignagent - The Agent to assign the ticket toTicketException - If the ticket has been modifiedCsTicketModel assignTicketToGroup(CsTicketModel ticket, CsAgentGroupModel group) throws TicketException
ticket - The Ticket to assigngroup - The Group to assign the ticket toTicketException - If the ticket has been modifiedCsCustomerEventModel addNoteToTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note, java.util.Collection<MediaModel> attachments)
ticket - 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 noteCsCustomerEventModel addCustomerEmailToTicket(CsTicketModel ticket, CsEventReason reason, java.lang.String subject, java.lang.String emailBody, java.util.Collection<MediaModel> attachments)
ticket - 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 emailCsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, java.lang.String note, java.util.Collection<MediaModel> attachments) throws TicketException
ticket - The ticket to be resolvedintervention - Intervention TyperesolutionType - The resolution reason for the ticketnote - messageattachments - as attachmentsTicketException - if the ticket is null or missing arguments required to resolve ticketCsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, java.lang.String note) throws TicketException
ticket - The ticket to be resolvedintervention - Intervention TyperesolutionType - The resolution reason for the ticketnote - messageTicketException - if the ticket is null or missing arguments required to resolve ticketCsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note, java.util.Collection<MediaModel> attachments) throws TicketException
ticket - 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 attachmentsTicketException - if the ticket is null or missing arguments required to resolve ticketCsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note) throws TicketException
ticket - The ticket to 'unresolve'intervention - The interventionType for the eventreason - The reason for the eventnote - The content of the note to add to the ticketTicketException - if the ticket is null or missing arguments required to unresolve ticketboolean isTicketClosed(CsTicketModel ticket)
ticket - The ticket to checkboolean isTicketResolvable(CsTicketModel ticket)
ticket - The ticket to checkjava.util.List<CsTicketState> getTicketNextStates(CsTicketModel ticket)
ticket - The current state of the ticketjava.util.List<CsTicketState> getTicketNextStates(CsTicketState state)
state - The state to get the next states fromCsTicketEventModel getLastEvent(CsTicketModel ticket)
ticket - The ticket to retrieve the last event forjava.lang.String renderTicketEventText(CsTicketEventModel ticket)
ticket - The ticket to get the description ofCopyright © 2018 SAP SE. All Rights Reserved.