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 Details

    • DataFeedProcessValidator

      public DataFeedProcessValidator()
  • Method Details

    • supports

      public boolean supports(Class<?> serviceClass, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Specified by:
      supports in interface com.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 interface com.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 whose DataFeedProcess.getDataFeedPublicationConfigurationIds() should be validated
      errors - errors instance on which to register errors
      context - 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 interface com.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 interface com.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

      protected String prefixWithEntityValidationMessageKey(String errorCode)
    • 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

      protected DataFeedPublicationConfigurationService 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

      protected DataFeedProcessService<DataFeedProcess> 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.