@Component(value="blAdvancedOfferPromotionMessageCacheInvalidationEventConsumer")
public class AdvancedOfferPromotionMessageCacheInvalidationEventConsumer
extends com.broadleafcommerce.jobsevents.service.AbstractSystemEventConsumer
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected com.broadleafcommerce.enterprise.common.extension.offer.PromotionMessageCacheInvalidationEventConsumerExtensionManager |
extensionManager |
protected AdvancedOfferPromotionMessageGenerator |
promotionMessageGenerator |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil |
transUtil |
entityManagerFactory| Constructor and Description |
|---|
AdvancedOfferPromotionMessageCacheInvalidationEventConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeEvent(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected boolean |
eventHasEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event,
Class<?> targetClass) |
protected List<org.broadleafcommerce.core.catalog.domain.Product> |
gatherRelatedProducts(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected String |
getClassName(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
String |
getEventType() |
protected String |
getIdentifierValue(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
int |
getOrder() |
protected org.broadleafcommerce.core.catalog.domain.Product |
getProductInstance(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected boolean |
isOfferEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected boolean |
isProductEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected boolean |
isPromotionMessageEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected boolean |
shouldClearCache(com.broadleafcommerce.jobsevents.domain.SystemEvent event) |
protected com.broadleafcommerce.enterprise.common.extension.offer.PromotionMessageCacheInvalidationEventConsumerExtensionManager extensionManager
protected org.broadleafcommerce.common.util.StreamingTransactionCapableUtil transUtil
protected AdvancedOfferPromotionMessageGenerator promotionMessageGenerator
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public AdvancedOfferPromotionMessageCacheInvalidationEventConsumer()
public void consumeEvent(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected boolean isOfferEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
throws ClassNotFoundException
ClassNotFoundExceptionprotected boolean isPromotionMessageEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
throws ClassNotFoundException
ClassNotFoundExceptionprotected boolean isProductEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
throws ClassNotFoundException
ClassNotFoundExceptionprotected boolean eventHasEntityType(com.broadleafcommerce.jobsevents.domain.SystemEvent event,
Class<?> targetClass)
throws ClassNotFoundException
ClassNotFoundExceptionprotected org.broadleafcommerce.core.catalog.domain.Product getProductInstance(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected boolean shouldClearCache(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected List<org.broadleafcommerce.core.catalog.domain.Product> gatherRelatedProducts(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected String getClassName(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
protected String getIdentifierValue(com.broadleafcommerce.jobsevents.domain.SystemEvent event)
public String getEventType()
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class com.broadleafcommerce.jobsevents.service.AbstractSystemEventConsumerCopyright © 2020. All rights reserved.