Class TmaDeleteFromCartStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.impl.TmaDeleteFromCartStrategy
- All Implemented Interfaces:
TmaCartStrategy
Cart strategy implementation for deleting product offering from cart.
- Since:
- 2102
-
Constructor Summary
ConstructorsConstructorDescriptionTmaDeleteFromCartStrategy(de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy updateCartEntryStrategy, TmaAbstractOrderEntryService abstractOrderEntryService, de.hybris.platform.servicelayer.model.ModelService modelService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaAbstractOrderEntryServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategyprocessCartAction(List<CommerceCartParameter> commerceCartParameterList) Processes cart updates.protected List<CommerceCartModification>removeEntry(CommerceCartParameter parameter) Traverses the hierarchical structure and removes the specified entry and all its children
-
Constructor Details
-
TmaDeleteFromCartStrategy
public TmaDeleteFromCartStrategy(de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy updateCartEntryStrategy, TmaAbstractOrderEntryService abstractOrderEntryService, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Details
-
processCartAction
public List<CommerceCartModification> processCartAction(List<CommerceCartParameter> commerceCartParameterList) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TmaCartStrategyProcesses cart updates.- Specified by:
processCartActionin interfaceTmaCartStrategy- Parameters:
commerceCartParameterList- contains attributes used for cart updates- Returns:
- list
CommerceCartModification - Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case of any error occurs during cart update
-
removeEntry
protected List<CommerceCartModification> removeEntry(@Nonnull CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Traverses the hierarchical structure and removes the specified entry and all its children- Parameters:
parameter- contains attribute for cart update- Returns:
- list
CommerceCartModification - Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- if the entry number does not exist in cart
-
getUpdateCartEntryStrategy
protected de.hybris.platform.commerceservices.order.CommerceUpdateCartEntryStrategy getUpdateCartEntryStrategy() -
getAbstractOrderEntryService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-