public interface CallContextController extends WidgetController
| Modifier and Type | Method and Description |
|---|---|
boolean |
endCall()
End the current call.
|
<R,T extends Throwable> |
executeInContext(<any> wrapper)
Execute the wrapper in the call centre context specified in context
|
String |
getAnonymousCartCode()
Get the cart code for the currently loaded anonymous cart.
|
TypedObject |
getAnonymousCustomer()
Get the anonymous customer
|
List<TypedObject> |
getAvailableCurrencies()
Get the available session currencies
|
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(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 customerString getAnonymousCartCode()
void setAnonymousCartCode(String cartCode)
cartCode - the cart codeTypedObject getCurrentOrder()
boolean setCurrentOrder(TypedObject order)
order - the orderTypedObject getCurrentTicket()
boolean setCurrentTicket(TypedObject ticket)
ticket - the ticketList<TypedObject> getAvailableCurrencies()
TypedObject getCallContextCurrency()
boolean setCallContextCurrency(TypedObject currency)
currency - the currencyboolean endCall()
<R,T extends Throwable> R executeInContext(<any> wrapper) throws T extends Throwable
wrapper - The code to execute in that contextT - The exceptionT extends ThrowableTypedObject getAnonymousCustomer()
boolean isAnonymousCustomer(TypedObject customer)
customer - the customer to testList<TypedObject> getAvailableSites()
TypedObject getCurrentSite()
boolean setCurrentSite(TypedObject baseSite)
Copyright © 2017 SAP SE. All Rights Reserved.