Class ProductInterestsValidator
java.lang.Object
de.hybris.platform.customerinterestsocc.validation.ProductInterestsValidator
Validates the request fields for product interests
-
Constructor Summary
ConstructorsConstructorDescriptionProductInterestsValidator(ProductInterestFacade productInterestFacade, ProductService productService, NotificationTypeValidator notificationTypeValidator, Map<String, org.springframework.validation.Validator> notificationTypeValidatorMap, ParamNotEmptyOrTooLongValidator productCodeNotEmptyOrTooLongValidator) -
Method Summary
Modifier and TypeMethodDescriptionprotected NotificationTypeValidatorprotected ParamNotEmptyOrTooLongValidatorprotected ProductInterestFacadeprotected ProductServiceprotected voidhandleErrors(org.springframework.validation.Errors errors) protected booleanisProductInStock(String productCode, String notificationType, org.springframework.validation.Errors errors) protected voidvalidateNotificationType(String notificationType, org.springframework.validation.Errors errors) voidvalidatePageSize(int pageSize, org.springframework.validation.Errors errors) protected voidvalidateProduct(String productCode, org.springframework.validation.Errors errors) protected voidvalidateProductInterest(org.springframework.web.bind.annotation.RequestMethod requestMethod, String productCode, String notificationType, org.springframework.validation.Errors errors) voidvalidateProductInterestCreation(String productCode, String notificationType, org.springframework.validation.Errors errors) voidvalidateProductInterestRemoval(String productCode, String notificationType, org.springframework.validation.Errors errors) voidvalidateProductInterestRetrieval(String productCode, String notificationType, org.springframework.validation.Errors errors)
-
Constructor Details
-
ProductInterestsValidator
public ProductInterestsValidator(ProductInterestFacade productInterestFacade, ProductService productService, NotificationTypeValidator notificationTypeValidator, Map<String, org.springframework.validation.Validator> notificationTypeValidatorMap, ParamNotEmptyOrTooLongValidator productCodeNotEmptyOrTooLongValidator)
-
-
Method Details
-
validateProductInterestCreation
-
validateProductInterestRemoval
-
validateProductInterestRetrieval
-
isProductInStock
-
validateProductInterest
-
validateNotificationType
protected void validateNotificationType(String notificationType, org.springframework.validation.Errors errors) -
validateProduct
-
validatePageSize
public void validatePageSize(int pageSize, org.springframework.validation.Errors errors) -
handleErrors
protected void handleErrors(org.springframework.validation.Errors errors) -
getProductInterestFacade
-
getProductService
-
getNotificationTypeValidator
-
getNotificationTypeValidatorMap
-
getProductCodeNotEmptyOrTooLongValidator
-