public class DefaultAssistedServiceService extends java.lang.Object implements AssistedServiceService
AssistedServiceService| Constructor and Description |
|---|
DefaultAssistedServiceService() |
| 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.
|
CustomerModel |
createNewCustomer(java.lang.String customerId,
java.lang.String customerName)
Creates a new customer by it email and name.
|
protected SortQueryData |
createSortQueryData(java.lang.String sortCode,
java.lang.String query) |
OrderModel |
gerOrderByCode(java.lang.String orderCode,
UserModel customer)
search for order
|
AssistedServiceSession |
getAsmSession()
Returns ASM session object with all information about current asm session.
|
PointOfServiceModel |
getAssistedServiceAgentStore()
Returns the PointOfServiceModel for the logged in as agent.
|
PointOfServiceModel |
getAssistedServiceAgentStore(UserModel agent)
Returns the PointOfServiceModel for the given as agent.
|
protected BaseSiteService |
getBaseSiteService() |
CartModel |
getCartByCode(java.lang.String cartCode,
UserModel customer)
search cart by code and customer
|
protected CartService |
getCartService() |
java.util.Collection<CartModel> |
getCartsForCustomer(CustomerModel customer)
Returns collection of a customer's carts
|
protected CommerceCartService |
getCommerceCartService() |
protected CommonI18NService |
getCommonI18NService() |
UserModel |
getCustomer(java.lang.String customerId)
returns customer
|
protected CustomerAccountService |
getCustomerAccountService() |
SearchPageData<CustomerModel> |
getCustomers(java.lang.String searchCriteria,
PageableData pageableData)
Get list of customers which username or email starts with provided value.
|
protected java.lang.StringBuilder |
getCustomerSearchQuery(java.lang.String searchCriteria) |
protected FlexibleSearchService |
getFlexibleSearchService() |
CartModel |
getLatestModifiedCart(UserModel customer)
search for a cart with most resent CartModel::getModifiedtime
|
protected ModelService |
getModelService() |
protected PagedFlexibleSearchService |
getPagedFlexibleSearchService() |
protected SessionService |
getSessionService() |
java.util.List<CustomerModel> |
getSuggestedCustomers(java.lang.String username)
Deprecated.
since 6.4, use
AssistedServiceService.getCustomers(String, PageableData) instead |
protected UserService |
getUserService() |
boolean |
isAbstractOrderMatchBaseSite(AbstractOrderModel abstractOrderModel)
Returns true when provided abstractOrderModel relates to current base site
|
void |
restoreCartToUser(CartModel cart,
UserModel user)
Restore cart to provided user
|
void |
setBaseSiteService(BaseSiteService baseSiteService) |
void |
setCartService(CartService cartService) |
void |
setCommerceCartService(CommerceCartService commerceCartService) |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setCustomerAccountService(CustomerAccountService customerAccountService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelService(ModelService modelService) |
void |
setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) |
void |
setSessionService(SessionService sessionService) |
void |
setUserService(UserService userService) |
@Deprecated public java.util.List<CustomerModel> getSuggestedCustomers(java.lang.String username)
AssistedServiceService.getCustomers(String, PageableData) insteadAssistedServiceServicegetSuggestedCustomers in interface AssistedServiceServiceusername - uid or customer's namepublic SearchPageData<CustomerModel> getCustomers(java.lang.String searchCriteria, PageableData pageableData)
AssistedServiceServicegetCustomers in interface AssistedServiceServicesearchCriteria - uid or customer's namepageableData - pageable propertiesprotected java.lang.StringBuilder getCustomerSearchQuery(java.lang.String searchCriteria)
protected SortQueryData createSortQueryData(java.lang.String sortCode, java.lang.String query)
public void bindCustomerToCart(java.lang.String customerId,
java.lang.String cartId)
throws AssistedServiceException
AssistedServiceServicebindCustomerToCart in interface AssistedServiceServiceAssistedServiceExceptionpublic AssistedServiceSession getAsmSession()
AssistedServiceServicegetAsmSession in interface AssistedServiceServicepublic void restoreCartToUser(CartModel cart, UserModel user)
AssistedServiceServicerestoreCartToUser in interface AssistedServiceServicepublic CustomerModel createNewCustomer(java.lang.String customerId, java.lang.String customerName) throws DuplicateUidException
AssistedServiceServicecreateNewCustomer in interface AssistedServiceServicecustomerId - 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)CustomerModelDuplicateUidExceptionpublic java.util.Collection<CartModel> getCartsForCustomer(CustomerModel customer)
AssistedServiceServicegetCartsForCustomer in interface AssistedServiceServicecustomer - customer model whose carts to be returnedpublic UserModel getCustomer(java.lang.String customerId)
AssistedServiceServicegetCustomer in interface AssistedServiceServicepublic CartModel getLatestModifiedCart(UserModel customer)
AssistedServiceServicegetLatestModifiedCart in interface AssistedServiceServicepublic OrderModel gerOrderByCode(java.lang.String orderCode, UserModel customer)
AssistedServiceServicegerOrderByCode in interface AssistedServiceServicepublic CartModel getCartByCode(java.lang.String cartCode, UserModel customer)
AssistedServiceServicegetCartByCode in interface AssistedServiceServicepublic PointOfServiceModel getAssistedServiceAgentStore()
AssistedServiceServicegetAssistedServiceAgentStore in interface AssistedServiceServicepublic PointOfServiceModel getAssistedServiceAgentStore(UserModel agent)
AssistedServiceServicegetAssistedServiceAgentStore in interface AssistedServiceServicepublic boolean isAbstractOrderMatchBaseSite(AbstractOrderModel abstractOrderModel)
AssistedServiceServiceisAbstractOrderMatchBaseSite in interface AssistedServiceServiceBaseSiteprotected FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
protected CommerceCartService getCommerceCartService()
public void setCommerceCartService(CommerceCartService commerceCartService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected CustomerAccountService getCustomerAccountService()
public void setCustomerAccountService(CustomerAccountService customerAccountService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
protected PagedFlexibleSearchService getPagedFlexibleSearchService()
public void setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService)
Copyright © 2017 SAP SE. All Rights Reserved.