Class ProductInterestsValidator
- java.lang.Object
-
- de.hybris.platform.customerinterestsoccaddon.validation.ProductInterestsValidator
-
public class ProductInterestsValidator extends java.lang.ObjectValidates the request fields for product interests
-
-
Constructor Summary
Constructors Constructor Description ProductInterestsValidator(ProductInterestFacade productInterestFacade, ProductService productService, NotificationTypeValidator notificationTypeValidator, java.util.Map<java.lang.String,org.springframework.validation.Validator> notificationTypeValidatorMap, ParamNotEmptyOrTooLongValidator productCodeNotEmptyOrTooLongValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NotificationTypeValidatorgetNotificationTypeValidator()protected java.util.Map<java.lang.String,org.springframework.validation.Validator>getNotificationTypeValidatorMap()protected ParamNotEmptyOrTooLongValidatorgetProductCodeNotEmptyOrTooLongValidator()protected ProductInterestFacadegetProductInterestFacade()protected ProductServicegetProductService()protected voidhandleErrors(org.springframework.validation.Errors errors)protected booleanisProductInStock(java.lang.String productCode, java.lang.String notificationType, org.springframework.validation.Errors errors)protected voidvalidateNotificationType(java.lang.String notificationType, org.springframework.validation.Errors errors)voidvalidatePageSize(int pageSize, org.springframework.validation.Errors errors)protected voidvalidateProduct(java.lang.String productCode, org.springframework.validation.Errors errors)protected voidvalidateProductInterest(org.springframework.web.bind.annotation.RequestMethod requestMethod, java.lang.String productCode, java.lang.String notificationType, org.springframework.validation.Errors errors)voidvalidateProductInterestCreation(java.lang.String productCode, java.lang.String notificationType, org.springframework.validation.Errors errors)voidvalidateProductInterestRemoval(java.lang.String productCode, java.lang.String notificationType, org.springframework.validation.Errors errors)voidvalidateProductInterestRetrieval(java.lang.String productCode, java.lang.String notificationType, org.springframework.validation.Errors errors)
-
-
-
Constructor Detail
-
ProductInterestsValidator
public ProductInterestsValidator(ProductInterestFacade productInterestFacade, ProductService productService, NotificationTypeValidator notificationTypeValidator, java.util.Map<java.lang.String,org.springframework.validation.Validator> notificationTypeValidatorMap, ParamNotEmptyOrTooLongValidator productCodeNotEmptyOrTooLongValidator)
-
-
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)
-
getProductInterestFacade
protected ProductInterestFacade getProductInterestFacade()
-
getProductService
protected ProductService getProductService()
-
getNotificationTypeValidator
protected NotificationTypeValidator getNotificationTypeValidator()
-
getNotificationTypeValidatorMap
protected java.util.Map<java.lang.String,org.springframework.validation.Validator> getNotificationTypeValidatorMap()
-
getProductCodeNotEmptyOrTooLongValidator
protected ParamNotEmptyOrTooLongValidator getProductCodeNotEmptyOrTooLongValidator()
-
-