Class MerchantCenterSFTPSubmitter
java.lang.Object
com.broadleafcommerce.datafeed.service.publisher.file.submitter.AbstractSFTPSubmitter
com.broadleafcommerce.datafeed.feedprovider.google.sftp.publisher.file.MerchantCenterSFTPSubmitter
- All Implemented Interfaces:
DataFeedFileSubmitter
,org.springframework.core.Ordered
public class MerchantCenterSFTPSubmitter
extends AbstractSFTPSubmitter
implements DataFeedFileSubmitter
DataFeedFileSubmitter
for SFTP uploads of Google Merchant center feed files.-
Nested Class Summary
Nested classes/interfaces inherited from class com.broadleafcommerce.datafeed.service.publisher.file.submitter.AbstractSFTPSubmitter
AbstractSFTPSubmitter.SFTPUploadConfiguration
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionMerchantCenterSFTPSubmitter
(com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildSftpConfiguration
(AbstractFileFeedPublisher.FilePublishContext filePublishContext) Build a validAbstractSFTPSubmitter.SFTPUploadConfiguration
from theAbstractFileFeedPublisher.FilePublishContext
.boolean
canHandle
(DataFeedPublishRequestDetails requestDetails) Reports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails
.protected String
getDestinationPathForUpload
(MerchantCenterSFTPPublicationConfiguration publicationConfiguration) Methods inherited from class com.broadleafcommerce.datafeed.service.publisher.file.submitter.AbstractSFTPSubmitter
buildFailedResponse, buildSuccessfulResponse, getTypeFactory, initializeSSHClient, submit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.datafeed.service.publisher.file.submitter.DataFeedFileSubmitter
getOrder, submit
-
Constructor Details
-
MerchantCenterSFTPSubmitter
public MerchantCenterSFTPSubmitter(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
canHandle
Description copied from interface:DataFeedFileSubmitter
Reports whether this component can handle processing a file submission for the givenDataFeedPublishRequestDetails
.- Specified by:
canHandle
in interfaceDataFeedFileSubmitter
- Parameters:
requestDetails
- request details around the publish process- Returns:
- true if this component can handle the submission for the given file, false otherwise
-
getSupportedFeedProcessTypes
-
buildSftpConfiguration
protected AbstractSFTPSubmitter.SFTPUploadConfiguration buildSftpConfiguration(AbstractFileFeedPublisher.FilePublishContext filePublishContext) Description copied from class:AbstractSFTPSubmitter
Build a validAbstractSFTPSubmitter.SFTPUploadConfiguration
from theAbstractFileFeedPublisher.FilePublishContext
.- Specified by:
buildSftpConfiguration
in classAbstractSFTPSubmitter
- Parameters:
filePublishContext
- details around the file publish context- Returns:
- a
AbstractSFTPSubmitter.SFTPUploadConfiguration
describing the SFTP upload that needs to be made
-
getDestinationPathForUpload
protected String getDestinationPathForUpload(MerchantCenterSFTPPublicationConfiguration publicationConfiguration)
-