Class ProductInterestsValidator

java.lang.Object
de.hybris.platform.customerinterestsoccaddon.validation.ProductInterestsValidator

public class ProductInterestsValidator extends Object
Validates the request fields for product interests
  • Constructor Details

  • Method Details

    • validateProductInterestCreation

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

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

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

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

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

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

      protected void validateProduct(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)
    • getProductInterestFacade

      protected ProductInterestFacade getProductInterestFacade()
    • getProductService

      protected ProductService getProductService()
    • getNotificationTypeValidator

      protected NotificationTypeValidator getNotificationTypeValidator()
    • getNotificationTypeValidatorMap

      protected Map<String,org.springframework.validation.Validator> getNotificationTypeValidatorMap()
    • getProductCodeNotEmptyOrTooLongValidator

      protected ParamNotEmptyOrTooLongValidator getProductCodeNotEmptyOrTooLongValidator()