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
-
Method Summary
Modifier and TypeMethodDescriptionprotected PriceListService<PriceList>
void
setPriceListService
(PriceListService<PriceList> priceListService) boolean
supports
(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validate
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
validateActiveStartDate
(org.springframework.validation.Errors errors) protected void
validateAllowVendorsToAddPriceData
(PriceList priceList, org.springframework.validation.Errors errors) protected void
validateCurrency
(org.springframework.validation.Errors errors) protected void
validateEndDate
(PriceList priceList, org.springframework.validation.Errors errors) protected void
validateForModification
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validateForReplace
(Object businessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
validateForUpdate
(Object updatedBusinessInstance, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
validateName
(org.springframework.validation.Errors errors) protected void
validatePriceContextCriteria
(PriceList priceList, org.springframework.validation.Errors errors) protected void
validatePriceModifier
(PriceList priceList, org.springframework.validation.Errors errors) protected void
validateUserTargets
(PriceList priceList, org.springframework.validation.Errors errors) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
validateForCreate
-
Constructor Details
-
PriceListValidator
public PriceListValidator()
-
-
Method Details
-
setPriceListService
-
supports
public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
supports
in 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:
validateForUpdate
in 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:
validateForReplace
in 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:
validate
in interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validatePriceModifier
protected void validatePriceModifier(PriceList priceList, org.springframework.validation.Errors errors) -
validateEndDate
-
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
-