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:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AbstractEvent>
This class extends
GenericAddOnSampleDataEventListener and tweaks its behaviour to import sample data organized hierarchically as
required for multi-country set-ups.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds 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, validateEventMethods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
MultiCountryAddOnSampleDataEventListener
public MultiCountryAddOnSampleDataEventListener()
-
-
Method Details
-
onEvent
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
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.
-