Package de.hybris.y2ysync.services.impl
Class DefaultStreamConfigCloningService
java.lang.Object
de.hybris.y2ysync.services.impl.DefaultStreamConfigCloningService
- All Implemented Interfaces:
StreamConfigCloningService
Default implementation of StreamConfigCloningService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneStreamConfigurations(Y2YStreamConfigurationModel... streamConfigurations) Clones the given StreamConfigurations, the corresponding Column Definitions are cloned as well.cloneStreamContainer(Y2YStreamConfigurationContainerModel y2YStreamConfigurationContainer, String containerId) Clones the given StreamConfigurationContainer with all assigned StreamConfigurations.voidsetItemModelCloneCreator(ItemModelCloneCreator itemModelCloneCreator)
-
Constructor Details
-
DefaultStreamConfigCloningService
public DefaultStreamConfigCloningService()
-
-
Method Details
-
cloneStreamContainer
public Y2YStreamConfigurationContainerModel cloneStreamContainer(Y2YStreamConfigurationContainerModel y2YStreamConfigurationContainer, String containerId) Description copied from interface:StreamConfigCloningServiceClones the given StreamConfigurationContainer with all assigned StreamConfigurations. The corresponding Column Definitions are cloned as well.- Specified by:
cloneStreamContainerin interfaceStreamConfigCloningService- Parameters:
y2YStreamConfigurationContainer- the streamConfigurationContainer to clonecontainerId- the Id of the new (cloned) container- Returns:
- new copy of given container
-
cloneStreamConfigurations
public Set<Y2YStreamConfigurationModel> cloneStreamConfigurations(Y2YStreamConfigurationModel... streamConfigurations) Description copied from interface:StreamConfigCloningServiceClones the given StreamConfigurations, the corresponding Column Definitions are cloned as well. The container assignment for every cloned StreamConfiguration is cleared, so the caller is responsible for eventually doing it afterwards.- Specified by:
cloneStreamConfigurationsin interfaceStreamConfigCloningService- Parameters:
streamConfigurations- the stream configuration objects to be cloned.- Returns:
- the cloned Stream Configurations
-
setItemModelCloneCreator
-