public interface CallContextController extends WidgetController
| Modifier and Type | Method and Description |
|---|---|
boolean |
endCall()
End the current call.
|
<R,T extends java.lang.Throwable> |
executeInContext(ImpersonationService.Executor<R,T> wrapper)
Execute the wrapper in the call centre context specified in context
|
java.lang.String |
getAnonymousCartCode()
Get the cart code for the currently loaded anonymous cart.
|
TypedObject |
getAnonymousCustomer()
Get the anonymous customer
|
java.util.List<TypedObject> |
getAvailableCurrencies()
Get the available session currencies
|
java.util.List<TypedObject> |
getAvailableSites() |
TypedObject |
getCallContextCurrency()
Get the current call context currency.
|
TypedObject |
getCurrentCustomer()
Get the current customer
|
TypedObject |
getCurrentOrder()
Get the current order
|
TypedObject |
getCurrentSite() |
TypedObject |
getCurrentTicket()
Get the current ticket
|
boolean |
isAnonymousCustomer(TypedObject customer)
Test if a specified customer is the anonymous customer
|
void |
setAnonymousCartCode(java.lang.String cartCode)
Set the current anonymous cart based on the specified cart code.
|
boolean |
setCallContextCurrency(TypedObject currency)
Set the current currency.
|
boolean |
setCurrentCustomer(TypedObject customer)
Set the current customer.
|
boolean |
setCurrentOrder(TypedObject order)
Set the current order in the call context.
|
boolean |
setCurrentSite(TypedObject baseSite) |
boolean |
setCurrentTicket(TypedObject ticket)
Set the current ticket in the call context.
|
addCockpitEventAcceptor, dispatchEvent, removeCockpitEventAcceptor, setCockpitEventAcceptorsTypedObject getCurrentCustomer()
boolean setCurrentCustomer(TypedObject customer)
customer - the new customerjava.lang.String getAnonymousCartCode()
void setAnonymousCartCode(java.lang.String cartCode)
cartCode - the cart codeTypedObject getCurrentOrder()
boolean setCurrentOrder(TypedObject order)
order - the orderTypedObject getCurrentTicket()
boolean setCurrentTicket(TypedObject ticket)
ticket - the ticketjava.util.List<TypedObject> getAvailableCurrencies()
TypedObject getCallContextCurrency()
boolean setCallContextCurrency(TypedObject currency)
currency - the currencyboolean endCall()
<R,T extends java.lang.Throwable> R executeInContext(ImpersonationService.Executor<R,T> wrapper) throws T extends java.lang.Throwable
wrapper - The code to execute in that contextT - The exceptionT extends java.lang.ThrowableTypedObject getAnonymousCustomer()
boolean isAnonymousCustomer(TypedObject customer)
customer - the customer to testjava.util.List<TypedObject> getAvailableSites()
TypedObject getCurrentSite()
boolean setCurrentSite(TypedObject baseSite)
Copyright © 2018 SAP SE. All Rights Reserved.