Class PriceListValidator
- java.lang.Object
-
- com.broadleafcommerce.pricing.service.validation.PriceListValidator
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
public class PriceListValidator extends Object implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
- Author:
- Chad Harchar (charchar)
-
-
Constructor Summary
Constructors Constructor Description PriceListValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PriceListService<PriceList>getPriceListService()voidsetPriceListService(PriceListService<PriceList> priceListService)booleansupports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)voidvalidate(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)protected voidvalidateActiveStartDate(org.springframework.validation.Errors errors)protected voidvalidateAllowVendorsToAddPriceData(PriceList priceList, org.springframework.validation.Errors errors)protected voidvalidateCurrency(org.springframework.validation.Errors errors)protected voidvalidateEndDate(PriceList priceList, org.springframework.validation.Errors errors)protected voidvalidateForModification(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)voidvalidateForReplace(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)voidvalidateForUpdate(Object updatedBusinessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)protected voidvalidateName(org.springframework.validation.Errors errors)protected voidvalidatePriceContextCriteria(PriceList priceList, org.springframework.validation.Errors errors)protected voidvalidatePriceModifier(PriceList priceList, org.springframework.validation.Errors errors)protected voidvalidateUserTargets(PriceList priceList, org.springframework.validation.Errors errors)
-
-
-
Method Detail
-
setPriceListService
@Autowired @Lazy public void setPriceListService(PriceListService<PriceList> priceListService)
-
supports
public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
- Specified by:
supportsin interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForUpdate
public void validateForUpdate(@NonNull Object updatedBusinessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- Specified by:
validateForUpdatein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForReplace
public void validateForReplace(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- Specified by:
validateForReplacein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForModification
protected void validateForModification(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
validate
public void validate(@NonNull Object businessInstance, @NonNull org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)- Specified by:
validatein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validatePriceModifier
protected void validatePriceModifier(PriceList priceList, org.springframework.validation.Errors errors)
-
validateEndDate
protected void validateEndDate(PriceList priceList, org.springframework.validation.Errors errors)
-
validateUserTargets
protected void validateUserTargets(PriceList priceList, org.springframework.validation.Errors errors)
-
validateCurrency
protected void validateCurrency(org.springframework.validation.Errors errors)
-
validateActiveStartDate
protected void validateActiveStartDate(org.springframework.validation.Errors errors)
-
validateName
protected void validateName(org.springframework.validation.Errors errors)
-
validatePriceContextCriteria
protected void validatePriceContextCriteria(PriceList priceList, org.springframework.validation.Errors errors)
-
validateAllowVendorsToAddPriceData
protected void validateAllowVendorsToAddPriceData(PriceList priceList, org.springframework.validation.Errors errors)
-
getPriceListService
@NonNull protected PriceListService<PriceList> getPriceListService()
-
-