Class ItemChangedEvent
java.lang.Object
de.hybris.platform.cockpit.events.impl.AbstractCockpitEvent
de.hybris.platform.cockpit.events.impl.ItemChangedEvent
- All Implemented Interfaces:
CockpitEvent
ItemChangedEvent is used to notify interested parties that an item has changed.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties) Creates a newItemChangedEvent.ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, ItemChangedEvent.ChangeType changeType) Creates a newItemChangedEvent.ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, ItemChangedEvent.ChangeType changeType, Map<String, ? extends Object> params) Creates a newItemChangedEvent.ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, Map<String, ? extends Object> params) Creates a newItemChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns type of the item change.getItem()Returns the item which has been changed.Returns the custom parameters of this event.Returns the properties which have changed ornullif all need to be reloaded.Methods inherited from class de.hybris.platform.cockpit.events.impl.AbstractCockpitEvent
getSource, toString
-
Constructor Details
-
ItemChangedEvent
public ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties) Creates a newItemChangedEvent.- Parameters:
source- source of this eventitem- the changed itemproperties- the changed properties
-
ItemChangedEvent
public ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, Map<String, ? extends Object> params) Creates a newItemChangedEvent.- Parameters:
source- source of this eventitem- the changed itemproperties- the changed properties of the itemparams- custom parameters
-
ItemChangedEvent
public ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, ItemChangedEvent.ChangeType changeType) Creates a newItemChangedEvent.- Parameters:
source- source of this eventitem- the changed itemproperties- the changed propertieschangeType- type of the item change
-
ItemChangedEvent
public ItemChangedEvent(Object source, TypedObject item, Collection<? extends PropertyDescriptor> properties, ItemChangedEvent.ChangeType changeType, Map<String, ? extends Object> params) Creates a newItemChangedEvent.- Parameters:
source- source of this eventitem- the changed itemproperties- the changed propertieschangeType- the type of changeparams- custom parameters
-
-
Method Details
-
getItem
Returns the item which has been changed. Note: Always returns non null.- Returns:
- the item which has been changed
-
getProperties
Returns the properties which have changed ornullif all need to be reloaded.- Returns:
- the changed properties or
null
-
getChangeType
Returns type of the item change.- Returns:
- type of the item change
-
getParameters
Returns the custom parameters of this event.- Returns:
- this event's custom parameters
-