Class TmaSelectPolicyActionResolver
java.lang.Object
de.hybris.platform.b2ctelcoservices.compatibility.impl.TmaSelectPolicyActionResolver
- All Implemented Interfaces:
TmaPolicyActionResolver
Service handling failed
TmaPolicyActionModel having
TmaCompatibilityPolicyActionType.SELECT action type.- Since:
- 6.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.order.EntryGroupServiceprotected StringgetErrorMessage(TmaPolicyStatementModel statement) protected de.hybris.platform.servicelayer.i18n.L10NServiceprotected de.hybris.platform.servicelayer.model.ModelServiceDeprecated, for removal: This API element is subject to removal in a future version.since 2011 - saving the validation messages has been moved to TmaValidationMessageStrategyprotected TmaValidationMessagesStrategyvoidprocessPolicyActions(AbstractOrderModel orderModel, CartEntryModel parentEntryModel, List<TmaPolicyActionModel> policyActions) Handles a compatibility policy action based on its type.voidprocessPolicyActions(AbstractOrderModel orderModel, EntryGroup entryGroup, List<TmaPolicyActionModel> policyActions) Updates the entry group with the error messages computed based on the failed poly actions.voidsetEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService) voidsetL10NService(de.hybris.platform.servicelayer.i18n.L10NService l10NService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.since 2011 - saving the validation messages has been moved to TmaValidationMessageStrategyvoidsetTmaEntryGroupService(TmaEntryGroupService tmaEntryGroupService) voidsetTmaValidationMessagesStrategy(TmaValidationMessagesStrategy tmaValidationMessagesStrategy)
-
Constructor Details
-
TmaSelectPolicyActionResolver
public TmaSelectPolicyActionResolver()
-
-
Method Details
-
processPolicyActions
public void processPolicyActions(AbstractOrderModel orderModel, EntryGroup entryGroup, List<TmaPolicyActionModel> policyActions) Updates the entry group with the error messages computed based on the failed poly actions.- Specified by:
processPolicyActionsin interfaceTmaPolicyActionResolver- Parameters:
orderModel- the current orderentryGroup- cart entry group considered invalidpolicyActions- failed policy actions
-
processPolicyActions
public void processPolicyActions(AbstractOrderModel orderModel, CartEntryModel parentEntryModel, List<TmaPolicyActionModel> policyActions) Description copied from interface:TmaPolicyActionResolverHandles a compatibility policy action based on its type.- Specified by:
processPolicyActionsin interfaceTmaPolicyActionResolver- Parameters:
orderModel- the current orderparentEntryModel- the parent entry representing the invalid grouppolicyActions- failed policy actions
-
getErrorMessage
-
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) -
getModelService
@Deprecated(since="2011", forRemoval=true) protected de.hybris.platform.servicelayer.model.ModelService getModelService()Deprecated, for removal: This API element is subject to removal in a future version.since 2011 - saving the validation messages has been moved to TmaValidationMessageStrategy -
setModelService
@Deprecated(since="2011", forRemoval=true) public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.since 2011 - saving the validation messages has been moved to TmaValidationMessageStrategy -
getTmaValidationMessagesStrategy
-
setTmaValidationMessagesStrategy
public void setTmaValidationMessagesStrategy(TmaValidationMessagesStrategy tmaValidationMessagesStrategy) -
getTmaEntryGroupService
-
setTmaEntryGroupService
-