Class TmaCartEntryPlaceValidator

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

public class TmaCartEntryPlaceValidator extends Object implements org.springframework.validation.Validator
Validator for PlaceWsDTO.
Since:
1911
  • Constructor Details

    • TmaCartEntryPlaceValidator

      public TmaCartEntryPlaceValidator()
  • 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
    • validatePlaces

      protected void validatePlaces(OrderEntryWsDTO cartItem, org.springframework.validation.Errors errors)
      Checks that all the places on product are valid.
      Parameters:
      cartItem - the cart item
      errors - the errors found
    • validateRole

      protected void validateRole(PlaceWsDTO place, org.springframework.validation.Errors errors)
      Checks that the place has a role and that role is of type TmaPlaceRoleType.
      Parameters:
      place - the place
      errors - the errors found