Interface WebhookEvent

All Superinterfaces:
Serializable
All Known Implementing Classes:
BaseWebhookEvent, ItemCreatedEvent, ItemDeletedEvent, ItemSavedEvent, ItemUpdatedEvent

public interface WebhookEvent extends Serializable
An event that triggers webhook notification
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the type of the event.
    Retrieves the changed item pk
    default boolean
    Indicates 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:
      true if it's created from a child event, otherwise, false When true, then getPk() returns PK of root item instead of the changed item PK. When false, then it's PK of the changed item.