Class ItemSavedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.webhookservices.event.ItemSavedEvent
-
- All Implemented Interfaces:
WebhookEvent,java.io.Serializable
public class ItemSavedEvent extends AbstractEvent implements WebhookEvent
A saved event implementation ofWebhookEventand wraps theAfterSaveEvent- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemSavedEvent(AfterSaveEvent event)Instantiates an ItemSavedEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)EventTypegetEventType()Retrieves the type of the event.PKgetPk()Retrieves the changed item pkPKgetSavedItemPk()Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0 Use getPk() insteadItemSavedEventTypegetType()Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0.inthashCode()java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope
-
-
-
-
Constructor Detail
-
ItemSavedEvent
public ItemSavedEvent(AfterSaveEvent event)
Instantiates an ItemSavedEvent- Parameters:
event- TheAfterSaveEventthat is wrapped.
-
-
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
-
getSavedItemPk
@Deprecated(since="2105.0", forRemoval=true) public PK getSavedItemPk()Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0 Use getPk() instead
-
getType
@Deprecated(since="2105.0", forRemoval=true) public ItemSavedEventType getType()Deprecated, for removal: This API element is subject to removal in a future version.Since 2105.0. Use getOperation() insteadRetrieves the type of the event.
- Returns:
ItemSavedEventType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractEvent
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-