Interface WebhookEvent
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BaseWebhookEvent,ItemCreatedEvent,ItemDeletedEvent,ItemSavedEvent,ItemUpdatedEvent
An event that triggers webhook notification
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the type of the event.getPk()Retrieves the changed item pkdefault booleanIndicates whether this event was created from a child event
-
Method Details
-
getPk
PK getPk()Retrieves the changed item pk- Returns:
- pk
-
getEventType
EventType getEventType()Retrieves the type of the event.- Returns:
EventType
-
isCreatedFromNestedItemEvent
default boolean isCreatedFromNestedItemEvent()Indicates whether this event was created from a child event- 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.
-