public class DefaultSubscriptionBasketController extends DefaultBasketController implements SubscriptionOrderController
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSubscriptionBasketController.DefaultSubscriptionOrderSummary |
protected static class |
DefaultSubscriptionBasketController.SummaryPriceType |
DefaultBasketController.DefaultCartSummarySubscriptionOrderController.SubscriptionOrderSummaryBasketController.CartSummary| Modifier and Type | Field and Description |
|---|---|
protected static Collection<ProductOption> |
PRODUCT_XML_OPTIONS |
CONTROLLER_CONTEXT| Constructor and Description |
|---|
DefaultSubscriptionBasketController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateAnonymousCartByCode(String cartCode)
Find and load a cart owned by the anonymous customer for the given cart code.
|
void |
addToCart(TypedObject product,
long quantity)
Add product to the cart
|
protected void |
calculateCartInContext(CartModel cartModel) |
void |
clearCart()
Clear the current cart
|
protected ImpersonationContext |
createImpersonationContext(CartModel cartModel) |
protected String[] |
generateCartPriceArray(List<OrderPriceData> orderPrices,
NumberFormat currencyFormatter,
DefaultSubscriptionBasketController.SummaryPriceType priceType,
boolean isCart) |
protected BaseSiteService |
getBaseSiteService() |
protected String |
getProductAsXML(ProductModel product)
Converts a product model into XML using the standard populators and stream aliases
|
protected ProductFacade |
getProductFacade() |
protected SubscriptionCartPopulator |
getSubscriptionCartPopulator() |
protected SubscriptionCommerceCartService |
getSubscriptionCommerceCartService() |
protected SubscriptionOrderPopulator |
getSubscriptionOrderPopulator() |
SubscriptionOrderController.SubscriptionOrderSummary |
getSubscriptionOrderSummary(AbstractOrderModel orderModel)
Prepares the cart summary for multi carts
|
protected SubscriptionXStreamAliasConverter |
getSubscriptionXStreamAliasConverter() |
void |
setBaseSiteService(BaseSiteService baseSiteService) |
void |
setProductFacade(ProductFacade productFacade) |
void |
setSubscriptionCartPopulator(SubscriptionCartPopulator subscriptionCartPopulator) |
void |
setSubscriptionCommerceCartService(SubscriptionCommerceCartService subscriptionCommerceCartService) |
void |
setSubscriptionOrderPopulator(SubscriptionOrderPopulator subscriptionOrderPopulator) |
void |
setSubscriptionXStreamAliasConverter(SubscriptionXStreamAliasConverter subscriptionXStreamAliasConverter) |
cleanupAnonymousCart, dispatchEvent, getAnonymousCustomer, getAppliedOrderPromotions, getAvailableDeliveryAddresses, getAvailableDeliveryModes, getBasketStrategy, getCart, getCartCurrency, getCartModel, getCartSummary, getCheckoutBrowser, getCheckoutBrowserDefaultWidgetCode, getCheckoutController, getCommerceCartService, getCommerceCheckoutService, getCommonI18NService, getCsCheckoutService, getCsPromotionService, getCustomerAccountService, getDefaultDeliveryMode, getDeliveryService, getEntries, getFormatFactory, getImpersonationService, getPotentialOrderPromotions, getPromotionalCartLineItems, getSessionService, getUserService, getWidgetHelper, lookupCheckoutBrowser, lookupCheckoutController, setBasketStrategy, setCartCurrency, setCartDeliveryMode, setCartEntryDeliveryAddress, setCartEntryDeliveryMode, setCheckoutBrowserDefaultWidgetCode, setCommerceCartService, setCommerceCheckoutService, setCommonI18NService, setCsCheckoutService, setCsPromotionService, setCustomerAccountService, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryModeIfAvailable, setDeliveryService, setFormatFactory, setImpersonationService, setPaymentAddress, setPaymentAddressIfAvailable, setQuantity, setSessionService, setUserService, setWidgetHelper, transferAnonymousCartToCustomer, triggerCheckout, validateBasketReadyForCheckoutbindToCallContextController, getCallContextController, handleCallContextControllerEvent, setCallContextControllergetCockpitTypeService, getModelService, setCockpitTypeService, setModelServiceaddCockpitEventAcceptor, dispatchEvent, getAcceptors, removeCockpitEventAcceptor, setCockpitEventAcceptorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCockpitEventAcceptor, removeCockpitEventAcceptor, setCockpitEventAcceptorsprotected static final Collection<ProductOption> PRODUCT_XML_OPTIONS
public void addToCart(TypedObject product, long quantity) throws IllegalArgumentException
BasketControlleraddToCart in interface BasketControlleraddToCart in class DefaultBasketControllerproduct - the product to addquantity - the quantity of the product to addIllegalArgumentExceptionprotected ImpersonationContext createImpersonationContext(CartModel cartModel)
createImpersonationContext in class DefaultBasketControllerpublic boolean activateAnonymousCartByCode(String cartCode)
BasketControlleractivateAnonymousCartByCode in interface BasketControlleractivateAnonymousCartByCode in class DefaultBasketControllercartCode - the cart code used to lookup the cartpublic SubscriptionOrderController.SubscriptionOrderSummary getSubscriptionOrderSummary(AbstractOrderModel orderModel)
SubscriptionOrderControllergetSubscriptionOrderSummary in interface SubscriptionOrderControllerSubscriptionOrderController.SubscriptionOrderSummary holding the total values in the cart summaryprotected String getProductAsXML(ProductModel product)
protected String[] generateCartPriceArray(List<OrderPriceData> orderPrices, NumberFormat currencyFormatter, DefaultSubscriptionBasketController.SummaryPriceType priceType, boolean isCart)
public void clearCart()
BasketControllerclearCart in interface BasketControllerclearCart in class DefaultBasketControllerprotected void calculateCartInContext(CartModel cartModel)
calculateCartInContext in class DefaultBasketControllerprotected SubscriptionCartPopulator getSubscriptionCartPopulator()
public void setSubscriptionCartPopulator(SubscriptionCartPopulator subscriptionCartPopulator)
protected SubscriptionOrderPopulator getSubscriptionOrderPopulator()
public void setSubscriptionOrderPopulator(SubscriptionOrderPopulator subscriptionOrderPopulator)
protected SubscriptionCommerceCartService getSubscriptionCommerceCartService()
public void setSubscriptionCommerceCartService(SubscriptionCommerceCartService subscriptionCommerceCartService)
protected ProductFacade getProductFacade()
public void setProductFacade(ProductFacade productFacade)
protected SubscriptionXStreamAliasConverter getSubscriptionXStreamAliasConverter()
public void setSubscriptionXStreamAliasConverter(SubscriptionXStreamAliasConverter subscriptionXStreamAliasConverter)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
Copyright © 2017 SAP SE. All Rights Reserved.