Class DefaultDestinationTargetCloningStrategy
java.lang.Object
de.hybris.platform.apiregistryservices.strategies.impl.DefaultDestinationTargetCloningStrategy
- All Implemented Interfaces:
DestinationTargetCloningStrategy
public class DefaultDestinationTargetCloningStrategy
extends Object
implements DestinationTargetCloningStrategy
Default implementation of
DestinationTargetCloningStrategy-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to create DefaultDestinationTargetCloningStrategyDefaultDestinationTargetCloningStrategy(@NotNull DestinationTargetDeletionStrategy destinationTargetDeletionStrategy) Constructor to create DefaultDestinationTargetCloningStrategy -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDestinations(DestinationTargetModel source, DestinationTargetModel destinationTarget, List<AbstractDestinationModel> destinations) Create destinations for the target destination.createDestinationTarget(DestinationTargetModel source, String newId) Create a new destination target from the template destination target with the given idvoidcreateEventConfigurations(DestinationTargetModel source, DestinationTargetModel destinationTarget, List<EventConfigurationModel> eventConfigurations) Create event configurations for the target destination.voiddeleteDestinationTarget(DestinationTargetModel destinationTarget) Delete destination target and all related objects of it such as destinations, event configurations.protected DestinationService<AbstractDestinationModel>protected EventConfigurationDaoprotected ModelServicevoidsetDestinationService(DestinationService<AbstractDestinationModel> destinationService) voidsetEventConfigurationDao(EventConfigurationDao eventConfigurationDao) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultDestinationTargetCloningStrategy
public DefaultDestinationTargetCloningStrategy()Default constructor to create DefaultDestinationTargetCloningStrategy -
DefaultDestinationTargetCloningStrategy
public DefaultDestinationTargetCloningStrategy(@NotNull @NotNull DestinationTargetDeletionStrategy destinationTargetDeletionStrategy) Constructor to create DefaultDestinationTargetCloningStrategy- Parameters:
destinationTargetDeletionStrategy- strategy for deleting destination target
-
-
Method Details
-
createDestinationTarget
Description copied from interface:DestinationTargetCloningStrategyCreate a new destination target from the template destination target with the given id- Specified by:
createDestinationTargetin interfaceDestinationTargetCloningStrategy- Parameters:
source- the destination target which is used as a templatenewId- the id of the new destination target- Returns:
- a destination target
-
createDestinations
public void createDestinations(DestinationTargetModel source, DestinationTargetModel destinationTarget, List<AbstractDestinationModel> destinations) Description copied from interface:DestinationTargetCloningStrategyCreate destinations for the target destination. Use destinations list to create new destinations unless it is empty, otherwise, use destination of the source destination target as a template for creating new destinations- Specified by:
createDestinationsin interfaceDestinationTargetCloningStrategy- Parameters:
source- the destination target which is used to create destinationsdestinationTarget- the destination target which owns the new destinationsdestinations- the list of destinations
-
createEventConfigurations
public void createEventConfigurations(DestinationTargetModel source, DestinationTargetModel destinationTarget, List<EventConfigurationModel> eventConfigurations) Description copied from interface:DestinationTargetCloningStrategyCreate event configurations for the target destination. Use eventConfigurations list to create new event configurations unless it is empty, otherwise, use event configurations of the source destination target as a template for creating new event configurations.- Specified by:
createEventConfigurationsin interfaceDestinationTargetCloningStrategy- Parameters:
source- the destination target which is used to create event configurationsdestinationTarget- the destination target which owns the new event configurationseventConfigurations- the list of event configurations
-
deleteDestinationTarget
Description copied from interface:DestinationTargetCloningStrategyDelete destination target and all related objects of it such as destinations, event configurations.- Specified by:
deleteDestinationTargetin interfaceDestinationTargetCloningStrategy- Parameters:
destinationTarget- the destinations target
-
getModelService
-
setModelService
-
getDestinationService
-
setDestinationService
-
getEventConfigurationDao
-
setEventConfigurationDao
-