public interface TicketUpdateStrategy
| Modifier and Type | Method and Description |
|---|---|
CsTicketEventModel |
assignTicketToAgent(CsTicketModel ticket,
EmployeeModel agent)
Assign the ticket to a new agent, or null to make the ticket unassigned.
|
CsTicketEventModel |
assignTicketToGroup(CsTicketModel ticket,
CsAgentGroupModel group)
Assign the ticket to a new group, or null to make the ticket unassigned.
|
java.util.List<CsTicketState> |
getTicketNextStates(CsTicketState currentState)
Get a list of legal states that a ticket can move into.
|
void |
setTicketState(CsTicketModel ticket,
CsTicketState newState)
Set the state of the ticket.
|
void |
setTicketState(CsTicketModel ticket,
CsTicketState newState,
java.lang.String note)
Set the state of the ticket.
|
CsTicketModel |
updateTicket(CsTicketModel ticket)
Store all updated attributes on a ticket.
|
CsTicketModel |
updateTicket(CsTicketModel ticket,
java.lang.String note)
Store all updated attributes on a ticket.
|
CsTicketModel updateTicket(CsTicketModel ticket) throws TicketException
ticket - The ticket to be updatedTicketException - If the update is not permittedCsTicketModel updateTicket(CsTicketModel ticket, java.lang.String note) throws TicketException
ticket - The ticket to be updatednote - The text of the note to add along with the updateTicketException - If the update is not permittedvoid setTicketState(CsTicketModel ticket, CsTicketState newState) throws TicketException
ticket - The ticket to update the state ofnewState - The state to set the ticket toTicketException - If the ticket has been modified or the state transition is illegalgetTicketNextStates to get list of possible state transitionsvoid setTicketState(CsTicketModel ticket, CsTicketState newState, java.lang.String note) throws TicketException
ticket - The ticket to update the state ofnewState - The state to set the ticket tonote - The text of the note to add along with the state changeTicketException - If the ticket has been modified or the state transition is illegalgetTicketNextStates to get list of possible state transitionsCsTicketEventModel assignTicketToAgent(CsTicketModel ticket, EmployeeModel agent) throws TicketException
ticket - The ticket to update the state ofagent - The agent to assign the ticket to or null to mark the ticket as unassigned.TicketException - If the ticket has been modified or the assignment is illegalCsTicketEventModel assignTicketToGroup(CsTicketModel ticket, CsAgentGroupModel group) throws TicketException
ticket - The ticket to update the state ofgroup - The agent group to assign the ticket to or null to mark the ticket as unassigned.TicketException - If the ticket has been modified or the assignment is illegaljava.util.List<CsTicketState> getTicketNextStates(CsTicketState currentState)
currentState - The starting stateCopyright © 2018 SAP SE. All Rights Reserved.