Class MultiCountryAddOnSampleDataEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
-
- de.hybris.platform.addonsupport.setup.impl.GenericAddOnSampleDataEventListener
-
- de.hybris.platform.multicountrysampledataaddon.setup.impl.MultiCountryAddOnSampleDataEventListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AbstractEvent>
public class MultiCountryAddOnSampleDataEventListener extends GenericAddOnSampleDataEventListener
This class extendsGenericAddOnSampleDataEventListenerand tweaks its behaviour to import sample data organized hierarchically as required for multi-country set-ups.
-
-
Constructor Summary
Constructors Constructor Description MultiCountryAddOnSampleDataEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendElectronicsMultiCountryImportData(SampleDataImportedEvent event)Adds to the import data in the event the MultiCountry catalogs and stores to load.protected voidonEvent(AbstractEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.-
Methods inherited from class de.hybris.platform.addonsupport.setup.impl.GenericAddOnSampleDataEventListener
cacheEvent, clearEventCache, createCacheKey, eventsMatch, getAddOnSampleDataImportService, getExtensionName, importSampleDataTriggeredByAddon, isAwareOfAddon, isSolrReindex, onAddonSampleDataImportedEvent, setAddOnSampleDataImportService, setExtensionName, setSolrReindex, validateEvent
-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(AbstractEvent event)
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Overrides:
onEventin classGenericAddOnSampleDataEventListener- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
appendElectronicsMultiCountryImportData
protected void appendElectronicsMultiCountryImportData(SampleDataImportedEvent event)
Adds to the import data in the event the MultiCountry catalogs and stores to load.- Parameters:
event- the event to which to add multiCountry data info.
-
-