Class CommerceManagerFeedAPIPublicationConfigurationContributor
java.lang.Object
com.broadleafcommerce.datafeed.feedprovider.meta.api.publisher.configuration.CommerceManagerFeedAPIPublicationConfigurationContributor
- All Implemented Interfaces:
DataFeedPublicationConfigurationContributor
public class CommerceManagerFeedAPIPublicationConfigurationContributor
extends Object
implements DataFeedPublicationConfigurationContributor
Responsible for constructing
CommerceManagerFeedAPIPublicationConfiguration
instances
from CommerceManagerFeedAPIConfigurationProperties.CommerceManagerFeedAPIPublicationConfigurationProperties
.-
Constructor Summary
ConstructorDescriptionCommerceManagerFeedAPIPublicationConfigurationContributor
(CommerceManagerFeedAPIConfigurationProperties datafeedAPIProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Builds, validates, and addsCommerceManagerFeedAPIPublicationConfiguration
instances totarget
.buildAndValidateConfiguration
(String id, CommerceManagerFeedAPIConfigurationProperties.CommerceManagerFeedAPIPublicationConfigurationProperties properties) buildConfiguration
(String id, CommerceManagerFeedAPIConfigurationProperties.CommerceManagerFeedAPIPublicationConfigurationProperties properties) protected com.broadleafcommerce.common.extension.TypeFactory
protected void
-
Constructor Details
-
CommerceManagerFeedAPIPublicationConfigurationContributor
public CommerceManagerFeedAPIPublicationConfigurationContributor(CommerceManagerFeedAPIConfigurationProperties datafeedAPIProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
contribute
- Specified by:
contribute
in interfaceDataFeedPublicationConfigurationContributor
- Returns:
- a list of
DataFeedPublicationConfiguration
to register withDataFeedPublicationConfigurationService
. May not be null, but may be empty.
-
buildAndAddConfigurations
Builds, validates, and addsCommerceManagerFeedAPIPublicationConfiguration
instances totarget
.- Parameters:
target
- the list to add built and validated configurations to- Throws:
com.broadleafcommerce.common.error.validation.ValidationException
- if there was an issue building the configurationsIllegalArgumentException
- if there was an issue building the configurations
-
buildAndValidateConfiguration
protected CommerceManagerFeedAPIPublicationConfiguration buildAndValidateConfiguration(String id, CommerceManagerFeedAPIConfigurationProperties.CommerceManagerFeedAPIPublicationConfigurationProperties properties) -
buildConfiguration
protected CommerceManagerFeedAPIPublicationConfiguration buildConfiguration(String id, CommerceManagerFeedAPIConfigurationProperties.CommerceManagerFeedAPIPublicationConfigurationProperties properties) -
validateConfiguration
-
getDatafeedAPIProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-