Class TmaUserCartValidator

  • All Implemented Interfaces:
    org.springframework.validation.Validator

    public class TmaUserCartValidator
    extends java.lang.Object
    implements org.springframework.validation.Validator
    Validates if the given user cart are valid and is eligible for requested user
    Since:
    1911
    • Constructor Detail

      • TmaUserCartValidator

        public TmaUserCartValidator​(TmaCartFacade tmaCartFacade)
    • Method Detail

      • supports

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

        public void validate​(java.lang.Object arg0,
                             org.springframework.validation.Errors arg1)
        Specified by:
        validate in interface org.springframework.validation.Validator