Class DefaultTmaCartService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.order.impl.DefaultAbstractOrderService<CartModel,CartEntryModel>
-
- de.hybris.platform.order.impl.DefaultCartService
-
- de.hybris.platform.b2ctelcoservices.order.impl.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 ofTmaCartService- Since:
- 1907
- See Also:
- Serialized Form
-
-
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 CartModelcreateCartForUserAndBaseSite(UserModel userModel, BaseSiteModel baseSiteModel)Creates a cart for the provided user.protected de.hybris.platform.store.services.BaseStoreServicegetBaseStoreService()protected de.hybris.platform.servicelayer.i18n.CommonI18NServicegetCommonI18NService()protected TmaCustomerInventoryServicegetCustomerInventoryService()protected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorgetKeyGenerator()protected de.hybris.platform.servicelayer.user.UserNetCheckingStrategygetUserNetCheckingStrategy()voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService)voidsetCustomerInventoryService(TmaCustomerInventoryService customerInventoryService)voidsetKeyGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator)voidsetUserNetCheckingStrategy(de.hybris.platform.servicelayer.user.UserNetCheckingStrategy userNetCheckingStrategy)booleanvalidateCartForEligibilityRules(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
-
-
-
-
Method Detail
-
createCartForUserAndBaseSite
public CartModel createCartForUserAndBaseSite(UserModel userModel, BaseSiteModel baseSiteModel)
Description copied from interface:TmaCartServiceCreates a cart for the provided user.- Specified by:
createCartForUserAndBaseSitein interfaceTmaCartService- Parameters:
userModel- The user for which the cart will be createdbaseSiteModel- The base site for which the cart will be created- Returns:
- The cart which was created.
-
validateCartForEligibilityRules
public boolean validateCartForEligibilityRules(AbstractOrderModel cart)
Description copied from interface:TmaCartServiceThis method validates the applied eligibility- Specified by:
validateCartForEligibilityRulesin interfaceTmaCartService- Parameters:
cart- The cart- Returns:
- false all the applied eligibility are valid, true otherwise
-
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()
-
getCustomerInventoryService
protected TmaCustomerInventoryService getCustomerInventoryService()
-
setCustomerInventoryService
public void setCustomerInventoryService(TmaCustomerInventoryService customerInventoryService)
-
-