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
-
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 DataFeedPublicationConfigurationService
Lazy injection to avoid circular dependency exceptions, since this is a service level component.protected String
prefixWithEntityValidationMessageKey
(String errorCode) 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.void
setDataFeedProcessService
(DataFeedProcessService<DataFeedProcess> dataFeedProcessService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.void
setDataFeedPublicationConfigurationService
(DataFeedPublicationConfigurationService dataFeedPublicationConfigurationService) Lazy injection to avoid circular dependency exceptions, since this is a service level component.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
validateApplicationId
(DataFeedProcess toValidate, org.springframework.validation.Errors errors, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected void
validateDataFeedPublicationConfigurationIds
(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 void
validateForModification
(DataFeedProcess requestedDataFeedProcess, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, org.springframework.validation.Errors errors) 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
validateProcessType
(DataFeedProcess toValidate, 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
-
DataFeedProcessValidator
public DataFeedProcessValidator()
-
-
Method Details
-
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
-
validate
public void validate(Object businessInstance, org.springframework.validation.Errors errors, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
validate
in 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:
validateForUpdate
in 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:
validateForReplace
in 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.
-