Class DefaultChannelConfigurationFactory
java.lang.Object
de.hybris.platform.outboundsync.config.impl.DefaultChannelConfigurationFactory
- All Implemented Interfaces:
ChannelConfigurationFactory
public class DefaultChannelConfigurationFactory
extends Object
implements ChannelConfigurationFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theOutboundSyncCronJobModelprotected IntegrationObjectDescriptorCreates an integration object descriptor for the given integration object model.createJob(OutboundChannelConfigurationModel channel, OutboundSyncStreamConfigurationContainerModel streamConfigContainer) Creates theOutboundSyncJobModelCreates theStreamConfigurationContainerModelcreateStreams(OutboundChannelConfigurationModel channel, StreamConfigurationContainerModel streamContainer) Create theStreamConfigurationModels for each IntegrationObjectItemprotected StreamIdentifierGeneratorvoidsetCronJobIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> cronJobIdentifierGenerator) voidsetDescriptorFactory(DescriptorFactory factory) voidvoidsetJobIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> jobIdentifierGenerator) voidsetSessionService(SessionService sessionService) voidsetStreamContainerIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> streamContainerIdentifierGenerator) void
-
Constructor Details
-
DefaultChannelConfigurationFactory
public DefaultChannelConfigurationFactory()
-
-
Method Details
-
createStreamContainer
public OutboundSyncStreamConfigurationContainerModel createStreamContainer(OutboundChannelConfigurationModel channel) Description copied from interface:ChannelConfigurationFactoryCreates theStreamConfigurationContainerModel- Specified by:
createStreamContainerin interfaceChannelConfigurationFactory- Parameters:
channel- theOutboundChannelConfigurationModel- Returns:
- the new
StreamConfigurationContainerModel
-
createStreams
public List<StreamConfigurationModel> createStreams(OutboundChannelConfigurationModel channel, StreamConfigurationContainerModel streamContainer) Description copied from interface:ChannelConfigurationFactoryCreate theStreamConfigurationModels for each IntegrationObjectItem- Specified by:
createStreamsin interfaceChannelConfigurationFactory- Parameters:
channel- theOutboundChannelConfigurationModelto associate with eachStreamConfigurationModelstreamContainer- theStreamConfigurationContainerModelto associate with eachStreamConfigurationModel- Returns:
- a list of
StreamConfigurationModels
-
createIntegrationObjectDescriptor
protected IntegrationObjectDescriptor createIntegrationObjectDescriptor(IntegrationObjectModel model) Creates an integration object descriptor for the given integration object model.- Parameters:
model- a model to create a descriptor for- Returns:
- a descriptor for the provided model.
- Throws:
IllegalArgumentException- if the model isnull.
-
createCronJob
public OutboundSyncCronJobModel createCronJob(OutboundChannelConfigurationModel channel, OutboundSyncJobModel job) Description copied from interface:ChannelConfigurationFactoryCreates theOutboundSyncCronJobModel- Specified by:
createCronJobin interfaceChannelConfigurationFactory- Parameters:
channel- theOutboundChannelConfigurationModelto associate with the new outboundsync componentjob- theOutboundSyncJobModelto associate with the new outboundsync component- Returns:
- the new
OutboundSyncCronJobModel
-
createJob
public OutboundSyncJobModel createJob(OutboundChannelConfigurationModel channel, OutboundSyncStreamConfigurationContainerModel streamConfigContainer) Description copied from interface:ChannelConfigurationFactoryCreates theOutboundSyncJobModel- Specified by:
createJobin interfaceChannelConfigurationFactory- Parameters:
channel- theOutboundChannelConfigurationModelto associate with the new outboundsync componentstreamConfigContainer- theOutboundSyncStreamConfigurationContainerModelto associate with the new outboundsync component- Returns:
- the new
OutboundSyncJobModel
-
getStreamIdentifierGenerator
-
setStreamIdentifierGenerator
-
getStreamContainerIdentifierGenerator
protected IdentifierGenerator<OutboundChannelConfigurationModel> getStreamContainerIdentifierGenerator() -
setStreamContainerIdentifierGenerator
public void setStreamContainerIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> streamContainerIdentifierGenerator) -
setDescriptorFactory
-
getJobIdentifierGenerator
-
setJobIdentifierGenerator
public void setJobIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> jobIdentifierGenerator) -
getCronJobIdentifierGenerator
-
setCronJobIdentifierGenerator
public void setCronJobIdentifierGenerator(IdentifierGenerator<OutboundChannelConfigurationModel> cronJobIdentifierGenerator) -
setInternationalizationService
-
setSessionService
-