Class TmaSubscribedProductActionValidator

java.lang.Object
de.hybris.platform.b2ctelcocommercewebservicescommons.validator.TmaSubscribedProductActionValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class TmaSubscribedProductActionValidator extends Object implements org.springframework.validation.Validator
Validates the subscribed product and offering attributes if the OrderEntryWsDTO.getAction() is present.
Since:
1911
  • Constructor Details

    • TmaSubscribedProductActionValidator

      public TmaSubscribedProductActionValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> aClass)
      Specified by:
      supports in interface org.springframework.validation.Validator
    • validate

      public void validate(Object object, org.springframework.validation.Errors errors)
      Specified by:
      validate in interface org.springframework.validation.Validator
    • validateRequiredInformationFor

      protected void validateRequiredInformationFor(OrderEntryWsDTO cartEntry, ActionTypeWsDTO actionType, org.springframework.validation.Errors errors)
      Checks that the subscribed product and offering are correctly set for the action found on the cartItem.
      Parameters:
      cartEntry - the input cartItem