Class DataFeedProcessValidator
java.lang.Object
com.broadleafcommerce.datafeed.service.validation.DataFeedProcessValidator
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
public class DataFeedProcessValidator
extends Object
implements com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
CRUD validations on
DataFeedProcess.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application>Lazy injection to avoid circular dependency exceptions, since this is a service level component.protected DataFeedProcessService<DataFeedProcess>Lazy injection to avoid circular dependency exceptions, since this is a service level component.protected DataFeedPublicationConfigurationServiceLazy injection to avoid circular dependency exceptions, since this is a service level component.protected StringprefixWithEntityValidationMessageKey(String errorCode) voidsetApplicationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.voidsetDataFeedProcessService(DataFeedProcessService<DataFeedProcess> dataFeedProcessService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.voidsetDataFeedPublicationConfigurationService(DataFeedPublicationConfigurationService dataFeedPublicationConfigurationService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.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 voidvalidateApplicationId(DataFeedProcess toValidate, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected voidvalidateDataFeedPublicationConfigurationIds(DataFeedProcess toValidate, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) This validation should only be run if other field validations pass, since this validation itself relies on other fields.protected voidvalidateForModification(DataFeedProcess requestedDataFeedProcess, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.validation.Errors errors) 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 voidvalidateProcessType(DataFeedProcess toValidate, org.springframework.validation.Errors errors) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
validateForCreate
-
Constructor Details
-
DataFeedProcessValidator
public DataFeedProcessValidator()
-
-
Method Details
-
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
-
validate
public void validate(Object businessInstance, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validatein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateProcessType
protected void validateProcessType(DataFeedProcess toValidate, org.springframework.validation.Errors errors) -
validateApplicationId
protected void validateApplicationId(DataFeedProcess toValidate, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
validateDataFeedPublicationConfigurationIds
protected void validateDataFeedPublicationConfigurationIds(DataFeedProcess toValidate, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) This validation should only be run if other field validations pass, since this validation itself relies on other fields.- Parameters:
toValidate- the data feed process whoseDataFeedProcess.getDataFeedPublicationConfigurationIds()should be validatederrors- errors instance on which to register errorscontext- context information around multitenant state
-
validateForUpdate
public void validateForUpdate(Object updatedBusinessInstance, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validateForUpdatein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForReplace
public void validateForReplace(Object businessInstance, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validateForReplacein interfacecom.broadleafcommerce.data.tracking.core.mapping.validation.EntityValidator
-
validateForModification
protected void validateForModification(DataFeedProcess requestedDataFeedProcess, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.validation.Errors errors) -
prefixWithEntityValidationMessageKey
-
getApplicationService
protected com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> getApplicationService()Lazy injection to avoid circular dependency exceptions, since this is a service level component. -
setApplicationService
@Autowired @Lazy public void setApplicationService(com.broadleafcommerce.data.tracking.core.tenant.service.CommonApplicationService<com.broadleafcommerce.data.tracking.core.tenant.domain.Application> applicationService) Lazy injection to avoid circular dependency exceptions, since this is a service level component. -
getDataFeedPublicationConfigurationService
Lazy injection to avoid circular dependency exceptions, since this is a service level component. -
setDataFeedPublicationConfigurationService
@Autowired @Lazy public void setDataFeedPublicationConfigurationService(DataFeedPublicationConfigurationService dataFeedPublicationConfigurationService) Lazy injection to avoid circular dependency exceptions, since this is a service level component. -
getDataFeedProcessService
Lazy injection to avoid circular dependency exceptions, since this is a service level component. -
setDataFeedProcessService
@Autowired @Lazy public void setDataFeedProcessService(DataFeedProcessService<DataFeedProcess> dataFeedProcessService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.
-