Class DefaultTmaCartService

  • All Implemented Interfaces:
    TmaCartService, de.hybris.platform.order.AbstractOrderService<CartModel,​CartEntryModel>, de.hybris.platform.order.CartService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class DefaultTmaCartService
    extends de.hybris.platform.order.impl.DefaultCartService
    implements TmaCartService
    Default implementation of TmaCartService
    Since:
    1907
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO
    • Field Summary

      • Fields inherited from class de.hybris.platform.order.impl.DefaultCartService

        SESSION_CART_PARAMETER_NAME
      • Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

        modelService, sessionService, txManager
      • Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        tenant
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTmaCartService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CartModel createCartForUserAndBaseSite​(UserModel userModel, BaseSiteModel baseSiteModel)
      Creates a cart for the provided user.
      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()  
      protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()  
      protected TmaCustomerInventoryService getCustomerInventoryService()  
      protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getKeyGenerator()  
      protected de.hybris.platform.servicelayer.user.UserNetCheckingStrategy getUserNetCheckingStrategy()  
      void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)  
      void setCustomerInventoryService​(TmaCustomerInventoryService customerInventoryService)  
      void setKeyGenerator​(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator)  
      void setUserNetCheckingStrategy​(de.hybris.platform.servicelayer.user.UserNetCheckingStrategy userNetCheckingStrategy)  
      boolean validateCartForEligibilityRules​(AbstractOrderModel cart)
      This method validates the applied eligibility
      • Methods inherited from class de.hybris.platform.order.impl.DefaultCartService

        addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, clone, createCartFromQuote, getCreateCartFromQuoteStrategy, getNextEntryNumber, getSessionCart, hasCart, hasSessionCart, internalGetSessionCart, postProcessClonedEntries, removeSessionCart, setAddToCartStrategy, setCartFactory, setCreateCartFromQuoteStrategy, setOrderCalculation, setSessionCart, updateQuantities, updateQuantities
      • Methods inherited from class de.hybris.platform.order.impl.DefaultAbstractOrderService

        addAllGlobalDiscountValues, addAllTotalTaxValues, addEntryAtPosition, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, getAbstractOrderEntryService, getAbstractOrderEntryTypeService, getCloneAbstractOrderStrategy, getCollidingEntry, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getEntryTypeCode, getGlobalDiscountValue, getOrderDao, getSaveAbstractOrderStrategy, removeGlobalDiscountValue, removeTotalTaxValue, saveOrder, setAbstractOrderEntryService, setAbstractOrderEntryTypeService, setCloneAbstractOrderStrategy, setOrderDao, setSaveAbstractOrderStrategy
      • Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

        getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
      • Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.hybris.platform.order.AbstractOrderService

        addAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrder
      • Methods inherited from interface de.hybris.platform.order.CartService

        addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, createCartFromQuote, getSessionCart, hasCart, hasSessionCart, removeSessionCart, setSessionCart, updateQuantities, updateQuantities
    • Constructor Detail

      • DefaultTmaCartService

        public DefaultTmaCartService​(de.hybris.platform.store.services.BaseStoreService baseStoreService)
    • Method Detail

      • createCartForUserAndBaseSite

        public CartModel createCartForUserAndBaseSite​(UserModel userModel,
                                                      BaseSiteModel baseSiteModel)
        Description copied from interface: TmaCartService
        Creates a cart for the provided user.
        Specified by:
        createCartForUserAndBaseSite in interface TmaCartService
        Parameters:
        userModel - The user for which the cart will be created
        baseSiteModel - The base site for which the cart will be created
        Returns:
        The cart which was created.
      • getUserNetCheckingStrategy

        protected de.hybris.platform.servicelayer.user.UserNetCheckingStrategy getUserNetCheckingStrategy()
      • setUserNetCheckingStrategy

        public void setUserNetCheckingStrategy​(de.hybris.platform.servicelayer.user.UserNetCheckingStrategy userNetCheckingStrategy)
      • getKeyGenerator

        protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getKeyGenerator()
      • setKeyGenerator

        public void setKeyGenerator​(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator)
      • getCommonI18NService

        protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()
      • setCommonI18NService

        public void setCommonI18NService​(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)
      • getBaseStoreService

        protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()