Class DefaultTmaAbstractChecklistActionResolver

java.lang.Object
de.hybris.platform.b2ctelcoservices.checklist.impl.DefaultTmaAbstractChecklistActionResolver
All Implemented Interfaces:
TmaChecklistActionResolver
Direct Known Subclasses:
TmaAppointmentActionResolver, TmaContractStartDateActionResolver, TmaInstallationAddressActionResolver, TmaMsisdnActionResolver, TmaServiceProviderActionResolver

public abstract class DefaultTmaAbstractChecklistActionResolver extends Object implements TmaChecklistActionResolver
Strategy to resolve an TmaPolicyActionModel against a list of TmaPolicyContext
Since:
1911
  • Constructor Details

    • DefaultTmaAbstractChecklistActionResolver

      public DefaultTmaAbstractChecklistActionResolver(de.hybris.platform.servicelayer.model.ModelService modelService, TmaCartValidationBuilder cartValidationBuilder)
  • Method Details

    • resolveAction

      public void resolveAction(TmaPolicyActionModel action, List<TmaPolicyContext> contexts)
      Description copied from interface: TmaChecklistActionResolver
      Resolve the action against the list of contexts
      Specified by:
      resolveAction in interface TmaChecklistActionResolver
      Parameters:
      action - the action to be resolved
      contexts - the contexts for which the action will be resolved
    • isActionFulfilled

      protected abstract boolean isActionFulfilled(TmaPolicyActionModel action, CartEntryModel cartEntry)
      Verifies if the action for the given cart entry is fulfilled or not
      Parameters:
      action - the action to be verified
      cartEntry - the given cart entry
      Returns:
      true if the action for the given car entry is fulfilled, otherwise false
    • getInvalidMessage

      protected abstract String getInvalidMessage()
      Retrieves the invalid message to be set on the validation object
      Returns:
      the invalid message
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
    • getCartValidationBuilder

      public TmaCartValidationBuilder getCartValidationBuilder()