Class BaseWebhookEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.hybris.platform.servicelayer.event.events.AbstractEvent
de.hybris.platform.webhookservices.event.BaseWebhookEvent
- All Implemented Interfaces:
WebhookEvent,Serializable
- Direct Known Subclasses:
ItemCreatedEvent,ItemDeletedEvent,ItemUpdatedEvent
Base event that implements
WebhookEvent- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseWebhookEvent(@NotNull PK pk, @NotNull EventType eventType) Instantiates an BaseWebhookEventprotectedBaseWebhookEvent(@NotNull PK pk, @NotNull EventType eventType, boolean createdFromNestedItemEvent) Instantiates an BaseWebhookEvent -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the type of the event.getPk()Retrieves the changed item pkbooleanIndicates whether this event was created from a child eventMethods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toStringMethods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Constructor Details
-
Method Details
-
getPk
Description copied from interface:WebhookEventRetrieves the changed item pk- Specified by:
getPkin interfaceWebhookEvent- Returns:
- pk
-
getEventType
Description copied from interface:WebhookEventRetrieves the type of the event.- Specified by:
getEventTypein interfaceWebhookEvent- Returns:
EventType
-
isCreatedFromNestedItemEvent
public boolean isCreatedFromNestedItemEvent()Description copied from interface:WebhookEventIndicates whether this event was created from a child event- Specified by:
isCreatedFromNestedItemEventin interfaceWebhookEvent- Returns:
trueif it's created from a child event, otherwise,falseWhentrue, then getPk() returns PK of root item instead of the changed item PK. Whenfalse, then it's PK of the changed item.
-