Class ProductInterestsValidator


  • public class ProductInterestsValidator
    extends java.lang.Object
    Validates the request fields for product interests
    • Method Detail

      • validateProductInterestCreation

        public void validateProductInterestCreation​(java.lang.String productCode,
                                                    java.lang.String notificationType,
                                                    org.springframework.validation.Errors errors)
      • validateProductInterestRemoval

        public void validateProductInterestRemoval​(java.lang.String productCode,
                                                   java.lang.String notificationType,
                                                   org.springframework.validation.Errors errors)
      • validateProductInterestRetrieval

        public void validateProductInterestRetrieval​(java.lang.String productCode,
                                                     java.lang.String notificationType,
                                                     org.springframework.validation.Errors errors)
      • isProductInStock

        protected boolean isProductInStock​(java.lang.String productCode,
                                           java.lang.String notificationType,
                                           org.springframework.validation.Errors errors)
      • validateProductInterest

        protected void validateProductInterest​(org.springframework.web.bind.annotation.RequestMethod requestMethod,
                                               java.lang.String productCode,
                                               java.lang.String notificationType,
                                               org.springframework.validation.Errors errors)
      • validateNotificationType

        protected void validateNotificationType​(java.lang.String notificationType,
                                                org.springframework.validation.Errors errors)
      • validateProduct

        protected void validateProduct​(java.lang.String productCode,
                                       org.springframework.validation.Errors errors)
      • validatePageSize

        public void validatePageSize​(int pageSize,
                                     org.springframework.validation.Errors errors)
      • handleErrors

        protected void handleErrors​(org.springframework.validation.Errors errors)
      • getNotificationTypeValidatorMap

        protected java.util.Map<java.lang.String,​org.springframework.validation.Validator> getNotificationTypeValidatorMap()