Class TmaAbstractEventsService

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.event.impl.DefaultEventService
de.hybris.platform.b2ctelcotmfevents.services.TmaAbstractEventsService
All Implemented Interfaces:
de.hybris.platform.servicelayer.event.EventService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
DefaultTmaEventsService

public abstract class TmaAbstractEventsService extends de.hybris.platform.servicelayer.event.impl.DefaultEventService
TMA customization of DefaultEventService with specific operations required for publishing events of catalog aware items.
Since:
2105
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO
  • Field Summary

    Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    tenant
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add the pk of an item to the eventsWhiteList enabling publish of events for this item.
    protected Set<String>
     
    boolean
    Checks if an item is in the eventsWhiteList.
    void
    Remove the pk of an item from the eventsWhiteList disabling publish of events for this item.
    abstract boolean
    Checks if events should be published for an item at catalog synch.

    Methods inherited from class de.hybris.platform.servicelayer.event.impl.DefaultEventService

    getEventListeners, publishEvent, registerEventListener, setAdditionalEventSenders, setApplicationEventMulticaster, setClusterService, setEventSender, setTenantService, unregisterEventListener

    Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TmaAbstractEventsService

      public TmaAbstractEventsService()
  • Method Details

    • addItemToEventsWhiteList

      public void addItemToEventsWhiteList(String pk)
      Add the pk of an item to the eventsWhiteList enabling publish of events for this item.
      Parameters:
      pk - the pk of the item
    • removeItemFromEventsWhitelist

      public void removeItemFromEventsWhitelist(String pk)
      Remove the pk of an item from the eventsWhiteList disabling publish of events for this item.
      Parameters:
      pk - the pk of the item
    • isItemInEventsWhiteList

      public boolean isItemInEventsWhiteList(String pk)
      Checks if an item is in the eventsWhiteList.
      Parameters:
      pk - the pk of the item.
      Returns:
      true if found, false otherwise.
    • shouldSendEventOnSynchronize

      public abstract boolean shouldSendEventOnSynchronize(ItemModel itemModel)
      Checks if events should be published for an item at catalog synch.
      Parameters:
      itemModel - the item.
      Returns:
      true if an event should be sent; false otherwise.
    • getEventsWhiteList

      protected Set<String> getEventsWhiteList()