Class DefaultCommerceRemoveEntryGroupStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.impl.DefaultCommerceRemoveEntryGroupStrategy
-
- All Implemented Interfaces:
CommerceRemoveEntryGroupStrategy
public class DefaultCommerceRemoveEntryGroupStrategy extends java.lang.Object implements CommerceRemoveEntryGroupStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultCommerceRemoveEntryGroupStrategy()
-
Method Summary
-
-
-
Method Detail
-
removeEntryGroup
@Nonnull public CommerceCartModification removeEntryGroup(@Nonnull RemoveEntryGroupParameter parameter) throws CommerceCartModificationException
Removes from the cart an entry group with all nested groups and their cart entries- Specified by:
removeEntryGroupin interfaceCommerceRemoveEntryGroupStrategy- Parameters:
parameter- remove entry group parameters- Returns:
- Cart modification information
- Throws:
CommerceCartModificationException- if related cart entry wasn't removed
-
doRemoveEntryGroup
protected CommerceCartModification doRemoveEntryGroup(RemoveEntryGroupParameter parameter) throws CommerceCartModificationException
Do remove from the cart.- Parameters:
parameter- remove entry group parameter- Returns:
- the commerce cart modification
- Throws:
CommerceCartModificationException- the commerce cart modification exception
-
excludeEntryGroup
protected java.util.List<EntryGroup> excludeEntryGroup(java.util.List<EntryGroup> source, java.lang.Integer groupNumber)
-
createRemoveEntryGroupResp
protected CommerceCartModification createRemoveEntryGroupResp(RemoveEntryGroupParameter parameter, java.lang.String status)
-
removeEntriesByGroupNumber
protected void removeEntriesByGroupNumber(RemoveEntryGroupParameter parameter, java.util.List<java.lang.Integer> groupNumbers) throws CommerceCartModificationException
-
getAllSubsequentGroupNumbers
protected java.util.List<java.lang.Integer> getAllSubsequentGroupNumbers(EntryGroup group)
-
validateRemoveEntryGroupParameter
protected void validateRemoveEntryGroupParameter(RemoveEntryGroupParameter parameters)
-
beforeRemoveEntryGroup
protected void beforeRemoveEntryGroup(RemoveEntryGroupParameter parameters) throws CommerceCartModificationException
-
afterRemoveEntryGroup
protected void afterRemoveEntryGroup(RemoveEntryGroupParameter parameters, CommerceCartModification result) throws CommerceCartModificationException
-
getCommerceRemoveEntryGroupHooks
protected java.util.List<CommerceRemoveEntryGroupMethodHook> getCommerceRemoveEntryGroupHooks()
-
setCommerceRemoveEntryGroupHooks
public void setCommerceRemoveEntryGroupHooks(java.util.List<CommerceRemoveEntryGroupMethodHook> commerceRemoveEntryGroupHooks)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getUpdateCartEntryStrategy
protected CommerceUpdateCartEntryStrategy getUpdateCartEntryStrategy()
-
setUpdateCartEntryStrategy
public void setUpdateCartEntryStrategy(CommerceUpdateCartEntryStrategy updateCartEntryStrategy)
-
getEntryGroupService
protected EntryGroupService getEntryGroupService()
-
setEntryGroupService
public void setEntryGroupService(EntryGroupService entryGroupService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-