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 java.util.Collection<ProductOption> |
PRODUCT_XML_OPTIONS |
CONTROLLER_CONTEXT| Constructor and Description |
|---|
DefaultSubscriptionBasketController() |
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 java.util.Collection<ProductOption> PRODUCT_XML_OPTIONS
public void addToCart(TypedObject product, long quantity) throws java.lang.IllegalArgumentException
BasketControlleraddToCart in interface BasketControlleraddToCart in class DefaultBasketControllerproduct - the product to addquantity - the quantity of the product to addjava.lang.IllegalArgumentExceptionprotected ImpersonationContext createImpersonationContext(CartModel cartModel)
createImpersonationContext in class DefaultBasketControllerpublic boolean activateAnonymousCartByCode(java.lang.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 java.lang.String getProductAsXML(ProductModel product)
protected java.lang.String[] generateCartPriceArray(java.util.List<OrderPriceData> orderPrices, java.text.NumberFormat currencyFormatter, DefaultSubscriptionBasketController.SummaryPriceType priceType, boolean isCart)
protected PriceData getPriceData(DefaultSubscriptionBasketController.SummaryPriceType priceType, OrderPriceData orderPrice)
protected java.lang.String getBilingTimeName(boolean isCart,
OrderPriceData orderPrice)
public void clearCart()
BasketControllerclearCart in interface BasketControllerclearCart in class DefaultBasketControllerprotected void calculateCartInContext(CartModel cartModel)
calculateCartInContext in class DefaultBasketControllerprotected void recalculateCart(CartModel cartModel)
protected 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 © 2018 SAP SE. All Rights Reserved.