Class TmaSelectPolicyActionResolver

java.lang.Object
de.hybris.platform.b2ctelcoservices.compatibility.impl.TmaSelectPolicyActionResolver
All Implemented Interfaces:
TmaPolicyActionResolver

public class TmaSelectPolicyActionResolver extends Object implements TmaPolicyActionResolver
Service handling failed TmaPolicyActionModel having TmaCompatibilityPolicyActionType.SELECT action type.
Since:
6.7
  • 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:
      processPolicyActions in interface TmaPolicyActionResolver
      Parameters:
      orderModel - the current order
      entryGroup - cart entry group considered invalid
      policyActions - failed policy actions
    • processPolicyActions

      public void processPolicyActions(AbstractOrderModel orderModel, CartEntryModel parentEntryModel, List<TmaPolicyActionModel> policyActions)
      Description copied from interface: TmaPolicyActionResolver
      Handles a compatibility policy action based on its type.
      Specified by:
      processPolicyActions in interface TmaPolicyActionResolver
      Parameters:
      orderModel - the current order
      parentEntryModel - the parent entry representing the invalid group
      policyActions - failed policy actions
    • getErrorMessage

      protected String getErrorMessage(TmaPolicyStatementModel statement)
    • 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

      protected TmaValidationMessagesStrategy getTmaValidationMessagesStrategy()
    • setTmaValidationMessagesStrategy

      public void setTmaValidationMessagesStrategy(TmaValidationMessagesStrategy tmaValidationMessagesStrategy)
    • getTmaEntryGroupService

      public TmaEntryGroupService getTmaEntryGroupService()
    • setTmaEntryGroupService

      public void setTmaEntryGroupService(TmaEntryGroupService tmaEntryGroupService)