Class TmaShoppingCartCreateValidator

java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.validators.TmaShoppingCartValidator
de.hybris.platform.b2ctelcotmfwebservices.validators.TmaShoppingCartCreateValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class TmaShoppingCartCreateValidator extends TmaShoppingCartValidator implements org.springframework.validation.Validator
Validator for ShoppingCart.
Since:
1907
  • Constructor Details

    • TmaShoppingCartCreateValidator

      public TmaShoppingCartCreateValidator()
  • 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
    • validatePaymentMethod

      protected void validatePaymentMethod(List<PaymentMethodRef> paymentMethodRef, org.springframework.validation.Errors errors)
      Checks if payment method is correct.
      Parameters:
      paymentMethodRef - payment method reference
      errors - the errors found
    • validatePlace

      protected void validatePlace(List<Place> places, org.springframework.validation.Errors errors)
      Checks if place is correct.
      Parameters:
      places - place reference
      errors - the errors found
    • validateDeliveryMode

      protected void validateDeliveryMode(DeliveryModeRef deliveryMode, org.springframework.validation.Errors errors)
      Checks if delivery mode is correct.
      Parameters:
      deliveryMode - the delivery mode
      errors - the errors found
    • validateRelatedParty

      protected void validateRelatedParty(List<RelatedPartyRef> relatedPartyRefList, org.springframework.validation.Errors errors)
      Checks if related party is correct.
      Parameters:
      relatedPartyRefList - related party reference list
      errors - the errors found
    • getCartItemValidator

      protected TmaCartItemValidator getCartItemValidator()
    • setCartItemValidator

      public void setCartItemValidator(TmaCartItemValidator cartItemValidator)