Class ImportServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.dataimport.service.autoconfigure.ImportServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({PurgeImportProperties.class,ImportServicesProperties.class})
public class ImportServiceAutoConfiguration
extends Object
- Author:
- Phillip Verheyden (phillipuniverse)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbatchCompletionService
(ImportService<Import> importService, BatchService<Batch> batchService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, IndexNotificationService indexNotificationService) batchItemCompletionService
(ImportBatchItemCompletionRepository<?> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) batchService
(ImportBatchRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityHelper helper, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, com.broadleafcommerce.common.extension.TypeFactory typeFactory) campaignCodeSpecification
(ImportDataNormalizer campaignCodeUTCDateNormalizer) completeProductImportSpecification
(ImportDataNormalizer productUTCDateNormalizer, ImportDataNormalizer productBooleanNormalizer) contractPriceDataSpecification
(ImportDataNormalizer priceDataUTCDateNormalizer) csvErrorsReportService
(ImportService<Import> importService, StorageService storage, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, ImportManager importManager) importIndexService
(ImportService<Import> importService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, ImportBatchItemCompletionRepository<?> repository, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, com.broadleafcommerce.common.extension.data.DataRouteSupporting route) importManager
(com.broadleafcommerce.common.extension.TypeFactory typeFactory, StorageService storage, ImportService<Import> importService, List<ImportProcessor> processors, List<ImportValidator> validators, List<FileReader<? extends FileReaderContext>> fileReaders, com.broadleafcommerce.common.extension.data.DataRouteReference dataRouteReference, List<com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator> contextRequestHydrators, com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils trackablePolicyUtils) importService
(ImportRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, BatchService<?> batchService) importSpecificationService
(List<ImportSpecification> importSpecifications) offerCodeSpecification
(ImportDataNormalizer offerCodeUTCDateNormalizer) productSpecification
(ImportDataNormalizer productUTCDateNormalizer) purgeImportJobHandler
(ImportService<Import> importService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, BatchService<Batch> batchService, PurgeImportProperties purgeImportProperties) salePriceDataSpecification
(ImportDataNormalizer priceDataUTCDateNormalizer) standardPriceDataSpecification
(ImportDataNormalizer priceDataUTCDateNormalizer)
-
Constructor Details
-
ImportServiceAutoConfiguration
public ImportServiceAutoConfiguration()
-
-
Method Details
-
importService
@Bean @ConditionalOnMissingBean public ImportService<Import> importService(ImportRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, BatchService<?> batchService) -
productUTCDateNormalizer
@Bean @ConditionalOnMissingBean(name="productUTCDateNormalizer") public ImportDataNormalizer productUTCDateNormalizer() -
productSpecification
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(name="broadleaf.import.product.specification.use-legacy", havingValue="true") public ProductSpecification productSpecification(ImportDataNormalizer productUTCDateNormalizer) -
completeProductImportSpecification
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(name="broadleaf.import.product.specification.use-legacy", havingValue="false", matchIfMissing=true) public CompleteProductImportSpecification completeProductImportSpecification(ImportDataNormalizer productUTCDateNormalizer, ImportDataNormalizer productBooleanNormalizer) -
campaignCodeUTCDateNormalizer
@Bean @ConditionalOnMissingBean(name="campaignCodeUTCDateNormalizer") public ImportDataNormalizer campaignCodeUTCDateNormalizer() -
offerCodeUTCDateNormalizer
@Bean @ConditionalOnMissingBean(name="offerCodeUTCDateNormalizer") public ImportDataNormalizer offerCodeUTCDateNormalizer() -
campaignCodeSpecification
@Bean @ConditionalOnMissingBean public CampaignCodeSpecification campaignCodeSpecification(ImportDataNormalizer campaignCodeUTCDateNormalizer) -
offerCodeSpecification
@Bean @ConditionalOnMissingBean public OfferCodeSpecification offerCodeSpecification(ImportDataNormalizer offerCodeUTCDateNormalizer) -
customerSpecification
-
customerSegmentMemberSpecification
@Bean @ConditionalOnMissingBean public CustomerSegmentMemberSpecification customerSegmentMemberSpecification() -
priceDataUTCDateNormalizer
@Bean @ConditionalOnMissingBean(name="priceDataUTCDateNormalizer") public ImportDataNormalizer priceDataUTCDateNormalizer() -
productBooleanNormalizer
@Bean @ConditionalOnMissingBean(name="productBooleanNormalizer") public ImportDataNormalizer productBooleanNormalizer() -
standardPriceDataSpecification
@Bean @ConditionalOnMissingBean(name="standardPriceDataSpecification") public PriceDataSpecification standardPriceDataSpecification(ImportDataNormalizer priceDataUTCDateNormalizer) -
salePriceDataSpecification
@Bean @ConditionalOnMissingBean(name="salePriceDataSpecification") public PriceDataSpecification salePriceDataSpecification(ImportDataNormalizer priceDataUTCDateNormalizer) -
contractPriceDataSpecification
@Bean @ConditionalOnMissingBean(name="contractPriceDataSpecification") public PriceDataSpecification contractPriceDataSpecification(ImportDataNormalizer priceDataUTCDateNormalizer) -
updatePricesSpecification
-
skuInventoryImportSpecification
@Bean @ConditionalOnMissingBean(name="skuInventoryImportSpecification") public SkuInventoryImportSpecification skuInventoryImportSpecification() -
importSpecificationService
@Bean @ConditionalOnMissingBean public ImportSpecificationService importSpecificationService(@Autowired(required=false) List<ImportSpecification> importSpecifications) -
importManager
@Bean @ConditionalOnMissingBean public ImportManager importManager(com.broadleafcommerce.common.extension.TypeFactory typeFactory, StorageService storage, ImportService<Import> importService, @Autowired(required=false) List<ImportProcessor> processors, @Autowired(required=false) List<ImportValidator> validators, @Autowired(required=false) List<FileReader<? extends FileReaderContext>> fileReaders, @Nullable com.broadleafcommerce.common.extension.data.DataRouteReference dataRouteReference, List<com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator> contextRequestHydrators, @Nullable com.broadleafcommerce.data.tracking.core.policy.trackable.TrackablePolicyUtils trackablePolicyUtils) -
batchService
@Bean @ConditionalOnMissingBean public BatchService<Batch> batchService(ImportBatchRepository<com.broadleafcommerce.data.tracking.core.Identifiable> repository, com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityHelper helper, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
batchItemCompletionService
@Bean @ConditionalOnMissingBean public BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService(ImportBatchItemCompletionRepository<?> repository, com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityHelper helper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
csvErrorsReportService
@Bean @ConditionalOnMissingBean public ErrorsReportService csvErrorsReportService(ImportService<Import> importService, StorageService storage, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, ImportManager importManager) -
batchCompletionService
@Bean @ConditionalOnMissingBean public BatchCompletionService batchCompletionService(ImportService<Import> importService, BatchService<Batch> batchService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, IndexNotificationService indexNotificationService) -
importIndexService
@Bean @ConditionalOnMissingBean public IndexNotificationService importIndexService(ImportService<Import> importService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, ImportBatchItemCompletionRepository<?> repository, com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager, @Nullable @Qualifier("importSource") com.broadleafcommerce.common.extension.data.DataRouteSupporting route) -
productImportBatchIndexableTypeMapping
@Bean @ConditionalOnMissingBean(name="productImportBatchIndexableTypeMapping") @Order(2147483647) public ProductImportBatchIndexableTypeMapping productImportBatchIndexableTypeMapping() -
customerImportBatchIndexableTypeMapping
@Bean @ConditionalOnMissingBean(name="customerImportBatchIndexableTypeMapping") @Order(2147483647) public CustomerImportBatchIndexableTypeMapping customerImportBatchIndexableTypeMapping() -
purgeImportJobHandler
@Bean @ConditionalOnMissingBean public PurgeImportJobHandler purgeImportJobHandler(ImportService<Import> importService, BatchItemCompletionService<BatchItemCompletion> batchItemCompletionService, BatchService<Batch> batchService, PurgeImportProperties purgeImportProperties)
-