Class DefaultDestinationTargetCloningStrategy
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.strategies.impl.DefaultDestinationTargetCloningStrategy
-
- All Implemented Interfaces:
DestinationTargetCloningStrategy
public class DefaultDestinationTargetCloningStrategy extends java.lang.Object implements DestinationTargetCloningStrategy
Default implementation ofDestinationTargetCloningStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultDestinationTargetCloningStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDestinations(DestinationTargetModel source, DestinationTargetModel destinationTarget, java.util.List<AbstractDestinationModel> destinations)Create destinations for the target destination.DestinationTargetModelcreateDestinationTarget(DestinationTargetModel source, java.lang.String newId)Create a new destination target from the template destination target with the given idvoidcreateEventConfigurations(DestinationTargetModel source, DestinationTargetModel destinationTarget, java.util.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>getDestinationService()protected EventConfigurationDaogetEventConfigurationDao()protected ModelServicegetModelService()voidsetDestinationService(DestinationService<AbstractDestinationModel> destinationService)voidsetEventConfigurationDao(EventConfigurationDao eventConfigurationDao)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
createDestinationTarget
public DestinationTargetModel createDestinationTarget(DestinationTargetModel source, java.lang.String newId)
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, java.util.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, java.util.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
public void deleteDestinationTarget(DestinationTargetModel destinationTarget)
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
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getDestinationService
protected DestinationService<AbstractDestinationModel> getDestinationService()
-
setDestinationService
public void setDestinationService(DestinationService<AbstractDestinationModel> destinationService)
-
getEventConfigurationDao
protected EventConfigurationDao getEventConfigurationDao()
-
setEventConfigurationDao
public void setEventConfigurationDao(EventConfigurationDao eventConfigurationDao)
-
-