Class GenericAddOnSampleDataEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
-
- de.hybris.platform.addonsupport.setup.impl.GenericAddOnSampleDataEventListener
-
- 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>
- Direct Known Subclasses:
CxAddOnSampleDataEventListener,CxAddOnSampleDataEventListener,MultiCountryAddOnSampleDataEventListener
public class GenericAddOnSampleDataEventListener extends AbstractEventListener<AbstractEvent>
-
-
Constructor Summary
Constructors Constructor Description GenericAddOnSampleDataEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcacheEvent(AddonSampleDataImportedEvent event)protected voidclearEventCache()protected java.lang.StringcreateCacheKey(AddonSampleDataImportedEvent event)protected booleaneventsMatch(AddonSampleDataImportedEvent newEvent, AddonSampleDataImportedEvent cachedEvent)protected AddOnSampleDataImportServicegetAddOnSampleDataImportService()protected java.lang.StringgetExtensionName()protected voidimportSampleDataTriggeredByAddon(AddonSampleDataImportedEvent event)protected booleanisAwareOfAddon(java.lang.String addonExtName)protected booleanisSolrReindex()protected voidonAddonSampleDataImportedEvent(AddonSampleDataImportedEvent event)protected voidonEvent(AbstractEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetAddOnSampleDataImportService(AddOnSampleDataImportService addOnSampleDataImportService)voidsetExtensionName(java.lang.String extensionName)voidsetSolrReindex(boolean solrReindex)protected voidvalidateEvent(AddonSampleDataImportedEvent event)-
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.- Specified by:
onEventin classAbstractEventListener<AbstractEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
onAddonSampleDataImportedEvent
protected void onAddonSampleDataImportedEvent(AddonSampleDataImportedEvent event)
-
validateEvent
protected void validateEvent(AddonSampleDataImportedEvent event)
-
eventsMatch
protected boolean eventsMatch(AddonSampleDataImportedEvent newEvent, AddonSampleDataImportedEvent cachedEvent)
-
cacheEvent
protected void cacheEvent(AddonSampleDataImportedEvent event)
-
createCacheKey
protected java.lang.String createCacheKey(AddonSampleDataImportedEvent event)
-
clearEventCache
protected void clearEventCache()
-
importSampleDataTriggeredByAddon
protected void importSampleDataTriggeredByAddon(AddonSampleDataImportedEvent event)
-
isAwareOfAddon
protected boolean isAwareOfAddon(java.lang.String addonExtName)
-
getAddOnSampleDataImportService
protected AddOnSampleDataImportService getAddOnSampleDataImportService()
-
setAddOnSampleDataImportService
public void setAddOnSampleDataImportService(AddOnSampleDataImportService addOnSampleDataImportService)
-
getExtensionName
protected java.lang.String getExtensionName()
-
setExtensionName
public void setExtensionName(java.lang.String extensionName)
-
isSolrReindex
protected boolean isSolrReindex()
-
setSolrReindex
public void setSolrReindex(boolean solrReindex)
-
-