Class MerchantCenterSFTPPublicationConfigurationContributor
java.lang.Object
com.broadleafcommerce.datafeed.feedprovider.google.sftp.publisher.configuration.MerchantCenterSFTPPublicationConfigurationContributor
- All Implemented Interfaces:
DataFeedPublicationConfigurationContributor
public class MerchantCenterSFTPPublicationConfigurationContributor
extends Object
implements DataFeedPublicationConfigurationContributor
Responsible for constructing
MerchantCenterSFTPPublicationConfiguration
instances from
MerchantCenterSFTPConfigurationProperties.MerchantCenterSFTPPublicationConfigurationProperties
.-
Constructor Summary
ConstructorDescriptionMerchantCenterSFTPPublicationConfigurationContributor
(MerchantCenterSFTPConfigurationProperties merchantCenterSFTPProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Builds, validates, and addsMerchantCenterSFTPPublicationConfiguration
instances totarget
.buildAndValidateConfiguration
(String id, MerchantCenterSFTPConfigurationProperties.MerchantCenterSFTPPublicationConfigurationProperties properties) buildConfiguration
(String id, MerchantCenterSFTPConfigurationProperties.MerchantCenterSFTPPublicationConfigurationProperties properties) protected com.broadleafcommerce.common.extension.TypeFactory
protected void
validateConfiguration
(MerchantCenterSFTPPublicationConfiguration configuration) protected void
validateFilenameMatchesFileType
(String filename, String fileType, org.springframework.validation.Errors errors)
-
Constructor Details
-
MerchantCenterSFTPPublicationConfigurationContributor
public MerchantCenterSFTPPublicationConfigurationContributor(MerchantCenterSFTPConfigurationProperties merchantCenterSFTPProperties, 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 addsMerchantCenterSFTPPublicationConfiguration
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 MerchantCenterSFTPPublicationConfiguration buildAndValidateConfiguration(String id, MerchantCenterSFTPConfigurationProperties.MerchantCenterSFTPPublicationConfigurationProperties properties) -
buildConfiguration
protected MerchantCenterSFTPPublicationConfiguration buildConfiguration(String id, MerchantCenterSFTPConfigurationProperties.MerchantCenterSFTPPublicationConfigurationProperties properties) -
validateConfiguration
-
validateFilenameMatchesFileType
-
getMerchantCenterSFTPProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-