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,java.io.Serializable
- Direct Known Subclasses:
ItemCreatedEvent,ItemUpdatedEvent
public class BaseWebhookEvent extends AbstractEvent implements WebhookEvent
Base event that implementsWebhookEvent- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseWebhookEvent(@NotNull PK pk, @NotNull EventType eventType)Instantiates an BaseWebhookEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventTypegetEventType()Retrieves the type of the event.PKgetPk()Retrieves the changed item pk-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toString
-
-
-
-
Method Detail
-
getPk
public PK getPk()
Description copied from interface:WebhookEventRetrieves the changed item pk- Specified by:
getPkin interfaceWebhookEvent- Returns:
- pk
-
getEventType
public EventType getEventType()
Description copied from interface:WebhookEventRetrieves the type of the event.- Specified by:
getEventTypein interfaceWebhookEvent- Returns:
EventType
-
-