public interface AssistedServiceFacade
| Modifier and Type | Method and Description |
|---|---|
void |
bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
Binds customer with provided id to cart if it's anonymous cart.
|
CustomerData |
createCustomer(java.lang.String customerId,
java.lang.String customerName)
Creates a new customer by it email and name.
|
void |
emulateAfterLogin()
Personify customer based on customer stored on login step and current session cart.
|
void |
emulateCustomer(java.lang.String customerId,
java.lang.String cartId)
Adds a customer and/or cart to the current session.
|
void |
emulateCustomer(java.lang.String customerId,
java.lang.String cartId,
java.lang.String orderId)
Adds provided customer, cart or an order to the current session.
|
AssistedServiceSession |
getAsmSession()
Returns ASM session object with all information about current asm session.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAssistedServiceSessionAttributes()
Returns assisted service attributes map for page model.
|
int |
getAssistedServiceSessionTimeout()
Returns timeout for assisted service agent session in seconds.
|
int |
getAssistedServiceSessionTimerValue()
Returns timer value (in seconds) for assisted service agent session, that displays inside widget.
|
java.util.Collection<CartData> |
getCartListForCustomer(CustomerModel customer)
Returns collection of a customer's carts
|
CustomerData |
getCustomerByOrder(java.lang.String orderId)
Get the order's customer using orderFacade.getOrderDetailsForCode
|
java.util.List<CustomerData> |
getCustomers(java.lang.String searchTerm,
PageableData pageableData)
Get list of customers which username or email starts with provided value.
|
java.util.List<CustomerData> |
getSuggestedCustomerList(java.lang.String username)
Validate session and get list of customers which username or email starts with provided value.
|
boolean |
isAssistedServiceAgentLoggedIn()
Checks if there is ASM information in the current session or no, this will be used by Session Restriction mainly
|
boolean |
isAssistedServiceModeLaunched()
Whether or not Assisted Service module is launched.
|
void |
launchAssistedServiceMode()
Starts the Assisted Service Mode.
|
void |
loginAssistedServiceAgent(java.lang.String username,
java.lang.String password)
Logs in Assisted Service agent using provided credentials.
|
void |
loginAssistedServiceAgentSAML(java.lang.String username,
java.lang.String password)
Logs in Assisted Service agent using provided SAML credentials.
|
void |
logoutAssistedServiceAgent()
Logs out Assisted Service agent by removing session attribute.
|
void |
quitAssistedServiceMode()
Ends the Assisted Service Mode.
|
void |
stopEmulateCustomer()
Remove customer and/or cart from the current session.
|
void emulateCustomer(java.lang.String customerId,
java.lang.String cartId)
throws AssistedServiceException
customerId - id to identify the customer by (usually email address)cartId - the id of the customer cart to pick upAssistedServiceException - In case of:
1) blank parameters
2) bad credentials,
3) AS agent isn't logged in yet
4) AS agent trying to emulate himselfvoid emulateCustomer(java.lang.String customerId,
java.lang.String cartId,
java.lang.String orderId)
throws AssistedServiceException
customerId - id to identify the customer by (usually email address)cartId - the id of the customer cart to pick uporderId - the id of the customer order to pick upAssistedServiceException - In case of:
1) both customerId and cartId parameters blank
2) bad credentials,
3) AS agent isn't logged in yet
4) AS agent trying to emulate himselfvoid stopEmulateCustomer()
void launchAssistedServiceMode()
void quitAssistedServiceMode()
void loginAssistedServiceAgent(java.lang.String username,
java.lang.String password)
throws AssistedServiceException
username - uidpassword - passwordAssistedServiceException - In case of bad credentialsvoid loginAssistedServiceAgentSAML(java.lang.String username,
java.lang.String password)
throws AssistedServiceException
username - uidpassword - passwordAssistedServiceException - In case of bad credentialsvoid logoutAssistedServiceAgent()
throws AssistedServiceException
AssistedServiceException - In case there is no AS agent sessionboolean isAssistedServiceModeLaunched()
int getAssistedServiceSessionTimeout()
int getAssistedServiceSessionTimerValue()
java.util.Map<java.lang.String,java.lang.Object> getAssistedServiceSessionAttributes()
java.util.List<CustomerData> getSuggestedCustomerList(java.lang.String username) throws AssistedServiceException
username - uid or customer's nameAssistedServiceException - In case Assisted Service Agent is not logged in or Assisted Service mode inactivejava.util.List<CustomerData> getCustomers(java.lang.String searchTerm, PageableData pageableData)
searchTerm - part of uid or customer's namepageableData - the pageable datavoid emulateAfterLogin()
throws AssistedServiceException
AssistedServiceException - In case of:
1) AS agent isn't logged in yet
2) AS agent trying to emulate himselfvoid bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
throws AssistedServiceException
customerId - email of to be newly created customer that is used as uidcartId - the id of the customer cart to pick upAssistedServiceException - In cas of missing cart with given cardIdCustomerData createCustomer(java.lang.String customerId, java.lang.String customerName) throws AssistedServiceException
customerId - email of to be newly created customer that is used as uidcustomerName - name of to be newly created customer (firstname and surname separated by space symbol)AssistedServiceException - In case of:
1) trying to create already existing customer with given customerId
2) disabled customer creationboolean isAssistedServiceAgentLoggedIn()
java.util.Collection<CartData> getCartListForCustomer(CustomerModel customer)
customer - customer model whose carts to be returnedAssistedServiceSession getAsmSession()
CustomerData getCustomerByOrder(java.lang.String orderId)
orderId - the id of the customer order to get customerCopyright © 2018 SAP SE. All Rights Reserved.