public class CscockpitEventHandler extends AbstractRequestEventHandler
RequestEventHandler responsible for handling item CS activation events.RequestHandler| Modifier and Type | Class and Description |
|---|---|
protected static class |
CscockpitEventHandler.Parameter
Parameter key/value pair
|
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CART_CODE |
protected static java.lang.String |
CUSTOMER_EMAIL |
protected static java.lang.String |
CUSTOMER_ID |
protected static java.lang.String |
CUSTOMER_PHONENUMBER |
protected static java.lang.String |
ORDER_NUMBER |
protected static java.lang.String |
TICKET_ID |
DELIMITER| Constructor and Description |
|---|
CscockpitEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateCart(java.lang.String cartCode)
Searches for a cart using a cart code and, if found, activates is in the current call context.
|
protected void |
activateCustomer(CustomerModel customerObject)
Activates a
CustomerModel in the current call context. |
protected void |
activateCustomerByEmail(java.lang.String customerEmail)
Searches for a customer using an email address and, if found, activates is in the current call context.
|
protected void |
activateCustomerById(java.lang.String customerId)
Searches for a customer using a customer id and, if found, activates is in the current call context.
|
protected void |
activateCustomerByPhone(java.lang.String customerPhone)
Searches for a customer using a phone number and, if found, activates is in the current call context.
|
protected void |
activateOrder(java.lang.String orderNumber)
Searches for an order using an order number and, if found, activates is in the current call context.
|
protected void |
activateTicket(CsTicketModel ticketObject)
Activates a
CsTicketModel in the current call context. |
protected void |
activateTicketById(java.lang.String ticketId)
Load a ticket by ticket id
|
protected void |
deactivateAll()
Ends the current call
|
protected BasketController |
getBasketController() |
protected CallContextController |
getCallContextController() |
protected TypeService |
getCockpitTypeService() |
protected CsUrlActivationDao |
getCsUrlActivationDao() |
protected CscockpitEventHandler.Parameter |
getParameter(java.util.Map<java.lang.String,java.lang.String[]> params,
java.util.Set<java.lang.String> rawKeys)
Returns the first parameter found, given a map of keys/values and an array of keys to look for.
|
protected java.util.Set<java.lang.String> |
getParameterKeys() |
protected void |
handleEvent(java.lang.String key,
java.lang.String value) |
void |
handleEvent(UICockpitPerspective perspective,
java.util.Map<java.lang.String,java.lang.String[]> params)
Called by the active
RequestHandler when a cockpit event is triggered for which this
RequestEventHandler is registered. |
void |
setBasketController(BasketController basketController)
Sets the
BasketController instance. |
void |
setCallContextController(CallContextController callContextController)
Sets the
CallContextController instance. |
void |
setCockpitTypeService(TypeService typeService) |
void |
setCsUrlActivationDao(CsUrlActivationDao csUrlActivationDao) |
getParameter, getPrefix, setPrefixprotected static final java.lang.String ORDER_NUMBER
protected static final java.lang.String CART_CODE
protected static final java.lang.String CUSTOMER_ID
protected static final java.lang.String CUSTOMER_EMAIL
protected static final java.lang.String CUSTOMER_PHONENUMBER
protected static final java.lang.String TICKET_ID
protected CsUrlActivationDao getCsUrlActivationDao()
public void setCsUrlActivationDao(CsUrlActivationDao csUrlActivationDao)
protected CallContextController getCallContextController()
public void setCallContextController(CallContextController callContextController)
CallContextController instance.callContextController - a CallContextController instanceprotected BasketController getBasketController()
public void setBasketController(BasketController basketController)
BasketController instance.basketController - a BasketController instanceprotected TypeService getCockpitTypeService()
public void setCockpitTypeService(TypeService typeService)
protected java.util.Set<java.lang.String> getParameterKeys()
public void handleEvent(UICockpitPerspective perspective, java.util.Map<java.lang.String,java.lang.String[]> params)
RequestHandler when a cockpit event is triggered for which this
RequestEventHandler is registered.perspective - the current perspective or null if no perspective has been specifiedparams - HTTP request parametersprotected void handleEvent(java.lang.String key,
java.lang.String value)
protected void activateOrder(java.lang.String orderNumber)
orderNumber - the order number to search forprotected void activateCart(java.lang.String cartCode)
cartCode - the cart code to search forprotected void activateCustomerById(java.lang.String customerId)
customerId - the customer id to search forprotected void activateCustomerByEmail(java.lang.String customerEmail)
customerEmail - the email address to search forprotected void activateCustomerByPhone(java.lang.String customerPhone)
customerPhone - the phone number to search forprotected void activateCustomer(CustomerModel customerObject)
CustomerModel in the current call context. If no customer model is supplied, the current call
is ended.customerObject - the CustomerModel to activateprotected void activateTicketById(java.lang.String ticketId)
ticketId - the ticket id to search forprotected void activateTicket(CsTicketModel ticketObject)
CsTicketModel in the current call context. If no customer model is supplied, the current call
is ended.ticketObject - the CsTicketModel to activateprotected void deactivateAll()
protected CscockpitEventHandler.Parameter getParameter(java.util.Map<java.lang.String,java.lang.String[]> params, java.util.Set<java.lang.String> rawKeys)
params - the parameters to searchrawKeys - the keys to look forCopyright © 2018 SAP SE. All Rights Reserved.