Class TmaAutoPickPolicyActionResolver
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.compatibility.impl.TmaAutoPickPolicyActionResolver
-
- All Implemented Interfaces:
TmaPolicyActionResolver
public class TmaAutoPickPolicyActionResolver extends java.lang.Object implements TmaPolicyActionResolver
Service handling failedTmaPolicyActionModelhavingTmaPoPolicyStatementModelstatement andTmaCompatibilityPolicyActionType.AUTOPICKaction type.- Since:
- 6.7
-
-
Constructor Summary
Constructors Constructor Description TmaAutoPickPolicyActionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected de.hybris.platform.commerceservices.order.CommerceCartServicegetCommerceCartService()protected de.hybris.platform.order.EntryGroupServicegetEntryGroupService()protected de.hybris.platform.servicelayer.i18n.L10NServicegetL10NService()protected CommerceCartParametergetNewCartEntryGroupParameter(AbstractOrderModel orderModel, EntryGroup entryGroup, TmaPoPolicyStatementModel statementModel)Creates the new cart parameter used for adding the new entry to cart.TmaEntryGroupServicegetTmaEntryGroupService()protected TmaValidationMessagesStrategygetTmaValidationMessagesStrategy()voidprocessPolicyActions(AbstractOrderModel orderModel, EntryGroup entryGroup, java.util.List<TmaPolicyActionModel> policyActions)Handles a compatibility policy action based on its type.voidsetCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService)voidsetEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService)voidsetL10NService(de.hybris.platform.servicelayer.i18n.L10NService l10NService)voidsetTmaEntryGroupService(TmaEntryGroupService tmaEntryGroupService)voidsetTmaValidationMessagesStrategy(TmaValidationMessagesStrategy tmaValidationMessagesStrategy)
-
-
-
Method Detail
-
processPolicyActions
public void processPolicyActions(AbstractOrderModel orderModel, EntryGroup entryGroup, java.util.List<TmaPolicyActionModel> policyActions)
Description copied from interface:TmaPolicyActionResolverHandles a compatibility policy action based on its type.- Specified by:
processPolicyActionsin interfaceTmaPolicyActionResolver- Parameters:
orderModel- the current orderentryGroup- cart entry group considered invalidpolicyActions- failed policy actions
-
getNewCartEntryGroupParameter
protected CommerceCartParameter getNewCartEntryGroupParameter(AbstractOrderModel orderModel, EntryGroup entryGroup, TmaPoPolicyStatementModel statementModel)
Creates the new cart parameter used for adding the new entry to cart.- Parameters:
orderModel- current orderentryGroup- the entry group where the new entry is addedstatementModel- the statement used for getting the product to be added- Returns:
CommerceCartParameterfor the new entry
-
getCommerceCartService
protected de.hybris.platform.commerceservices.order.CommerceCartService getCommerceCartService()
-
setCommerceCartService
public void setCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService)
-
getL10NService
protected de.hybris.platform.servicelayer.i18n.L10NService getL10NService()
-
setL10NService
public void setL10NService(de.hybris.platform.servicelayer.i18n.L10NService l10NService)
-
getEntryGroupService
protected de.hybris.platform.order.EntryGroupService getEntryGroupService()
-
setEntryGroupService
public void setEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService)
-
getTmaValidationMessagesStrategy
protected TmaValidationMessagesStrategy getTmaValidationMessagesStrategy()
-
setTmaValidationMessagesStrategy
public void setTmaValidationMessagesStrategy(TmaValidationMessagesStrategy tmaValidationMessagesStrategy)
-
getTmaEntryGroupService
public TmaEntryGroupService getTmaEntryGroupService()
-
setTmaEntryGroupService
public void setTmaEntryGroupService(TmaEntryGroupService tmaEntryGroupService)
-
-