Class GenericAddOnSampleDataEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
de.hybris.platform.addonsupport.setup.impl.GenericAddOnSampleDataEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AbstractEvent>
- Direct Known Subclasses:
CxAddOnSampleDataEventListener,CxAddOnSampleDataEventListener,MultiCountryAddOnSampleDataEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected Stringprotected booleaneventsMatch(AddonSampleDataImportedEvent newEvent, AddonSampleDataImportedEvent cachedEvent) protected AddOnSampleDataImportServiceprotected Stringprotected voidprotected booleanisAwareOfAddon(String addonExtName) protected booleanprotected voidprotected voidonEvent(AbstractEvent event) This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetAddOnSampleDataImportService(AddOnSampleDataImportService addOnSampleDataImportService) voidsetExtensionName(String extensionName) voidsetSolrReindex(boolean solrReindex) protected voidMethods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
GenericAddOnSampleDataEventListener
public GenericAddOnSampleDataEventListener()
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AbstractEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
onAddonSampleDataImportedEvent
-
validateEvent
-
eventsMatch
protected boolean eventsMatch(AddonSampleDataImportedEvent newEvent, AddonSampleDataImportedEvent cachedEvent) -
cacheEvent
-
createCacheKey
-
clearEventCache
protected void clearEventCache() -
importSampleDataTriggeredByAddon
-
isAwareOfAddon
-
getAddOnSampleDataImportService
-
setAddOnSampleDataImportService
public void setAddOnSampleDataImportService(AddOnSampleDataImportService addOnSampleDataImportService) -
getExtensionName
-
setExtensionName
-
isSolrReindex
protected boolean isSolrReindex() -
setSolrReindex
public void setSolrReindex(boolean solrReindex)
-