public class DefaultTicketController extends AbstractCallContextDependantController implements TicketController
TicketController interface.CONTROLLER_CONTEXT| Constructor and Description |
|---|
DefaultTicketController() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignTicketToAgent(TypedObject ticket,
TypedObject agent)
Assign the ticket to an agent
|
void |
assignTicketToGroup(TypedObject ticket,
TypedObject group)
Assign the ticket to an agent group
|
boolean |
canChangeState(TypedObject ticket)
Can the ticket state be changed
|
boolean |
canResolve(TypedObject ticket)
Can this ticket be resolved
|
boolean |
canSendEmail(TypedObject ticket)
Can email be sent for this ticket
|
boolean |
canUnResolve(TypedObject ticket)
Can this ticket be un-resolved
|
boolean |
canUpdate(TypedObject ticket)
Can this ticket be updated
|
void |
dispatchEvent(java.lang.String context,
java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> data)
Notifies all event acceptors which are registered for events with the context code context.
|
protected CsCustomerService |
getCsCustomerService() |
TypedObject |
getCurrentTicket()
Get the current ticket
|
protected TicketBusinessService |
getTicketBusinessService() |
void |
setCsCustomerService(CsCustomerService csCustomerService) |
void |
setTicketBusinessService(TicketBusinessService ticketBusinessService) |
bindToCallContextController, getCallContextController, handleCallContextControllerEvent, setCallContextControllergetCockpitTypeService, getModelService, setCockpitTypeService, setModelServiceaddCockpitEventAcceptor, dispatchEvent, getAcceptors, removeCockpitEventAcceptor, setCockpitEventAcceptorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCockpitEventAcceptor, removeCockpitEventAcceptor, setCockpitEventAcceptorsprotected TicketBusinessService getTicketBusinessService()
public void setTicketBusinessService(TicketBusinessService ticketBusinessService)
protected CsCustomerService getCsCustomerService()
public void setCsCustomerService(CsCustomerService csCustomerService)
public void dispatchEvent(java.lang.String context,
java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> data)
WidgetControllerdispatchEvent in interface WidgetControllerdispatchEvent in class AbstractWidgetControllercontext - event contextsource - event sourcedata - parameters to be be passed to registered listenerspublic TypedObject getCurrentTicket()
TicketControllergetCurrentTicket in interface TicketControllerpublic boolean canSendEmail(TypedObject ticket)
TicketControllercanSendEmail in interface TicketControllerticket - the ticketpublic boolean canUpdate(TypedObject ticket)
TicketControllercanUpdate in interface TicketControllerticket - the ticketpublic boolean canChangeState(TypedObject ticket)
TicketControllercanChangeState in interface TicketControllerticket - the ticketpublic boolean canResolve(TypedObject ticket)
TicketControllercanResolve in interface TicketControllerticket - the ticketpublic boolean canUnResolve(TypedObject ticket)
TicketControllercanUnResolve in interface TicketControllerticket - the ticketpublic void assignTicketToAgent(TypedObject ticket, TypedObject agent) throws TicketException
TicketControllerassignTicketToAgent in interface TicketControllerticket - the ticketagent - the agent to assign to the ticketTicketException - thrown on errorpublic void assignTicketToGroup(TypedObject ticket, TypedObject group) throws TicketException
TicketControllerassignTicketToGroup in interface TicketControllerticket - the ticketgroup - the agent group to assign on the ticketTicketException - thrown on errorCopyright © 2018 SAP SE. All Rights Reserved.