Package ro.sync.ecss.extensions.api
Class OptionChangedEvent
java.lang.Object
ro.sync.ecss.extensions.api.OptionChangedEvent
Represents an event which indicates that the value of an option
has been changed.
-
Constructor Summary
ConstructorsConstructorDescriptionOptionChangedEvent
(String optionKey, Object oldValue, Object newValue) The constructor of the option changed event.OptionChangedEvent
(String optionKey, String oldValue, String newValue) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGet the new value as an object (string, boolean or even a more complex persistent object).Deprecated.Get the new old as an object (string, boolean or even a more complex persistent object).Deprecated.
-
Constructor Details
-
OptionChangedEvent
Deprecated.The constructor of the option changed event. This constructor is deprecated, you should use theOptionChangedEvent(String, Object, Object)
constructor instead.- Parameters:
optionKey
- The identification key of the option whose value modification generated this event.oldValue
- The old value of the option.newValue
- The new value of the option.
-
OptionChangedEvent
The constructor of the option changed event.- Parameters:
optionKey
- The identification key of the option whose value modification generated this event.oldValue
- The old value of the option.newValue
- The new value of the option.
-
-
Method Details
-
getOptionKey
- Returns:
- Returns the identification key of the option associated with this event.
-
getOldValue
Deprecated.Get the old value casted as a string. This method is deprecated, you should use thegetOldObjectValue()
method instead.- Returns:
- Returns the old value of the option associated with this event.
-
getNewValue
Deprecated.Get the new value casted as a string. This method is deprecated, you should use thegetNewObjectValue()
method instead.- Returns:
- Returns the new value of the option associated with this event.
-
getOldObjectValue
Get the new old as an object (string, boolean or even a more complex persistent object).- Returns:
- Returns the old value of the option associated with this event.
-
getNewObjectValue
Get the new value as an object (string, boolean or even a more complex persistent object).- Returns:
- Returns the new value of the option associated with this event.
-