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 -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the pk of an item to the eventsWhiteList enabling publish of events for this item.booleanChecks if an item is in the eventsWhiteList.voidRemove the pk of an item from the eventsWhiteList disabling publish of events for this item.abstract booleanshouldSendEventOnSynchronize(ItemModel itemModel) 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, unregisterEventListenerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
TmaAbstractEventsService
public TmaAbstractEventsService()
-
-
Method Details
-
addItemToEventsWhiteList
Add the pk of an item to the eventsWhiteList enabling publish of events for this item.- Parameters:
pk- the pk of the item
-
removeItemFromEventsWhitelist
Remove the pk of an item from the eventsWhiteList disabling publish of events for this item.- Parameters:
pk- the pk of the item
-
isItemInEventsWhiteList
Checks if an item is in the eventsWhiteList.- Parameters:
pk- the pk of the item.- Returns:
- true if found, false otherwise.
-
shouldSendEventOnSynchronize
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
-