Package ro.sync.ecss.extensions.api
Class OptionChangedEvent
- java.lang.Object
-
- ro.sync.ecss.extensions.api.OptionChangedEvent
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class OptionChangedEvent extends java.lang.Object
Represents an event which indicates that the value of an option has been changed.
-
-
Constructor Summary
Constructors Constructor Description OptionChangedEvent(java.lang.String optionKey, java.lang.Object oldValue, java.lang.Object newValue)
The constructor of the option changed event.OptionChangedEvent(java.lang.String optionKey, java.lang.String oldValue, java.lang.String newValue)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object
getNewObjectValue()
Get the new value as an object (string, boolean or even a more complex persistent object).java.lang.String
getNewValue()
Deprecated.java.lang.Object
getOldObjectValue()
Get the new old as an object (string, boolean or even a more complex persistent object).java.lang.String
getOldValue()
Deprecated.java.lang.String
getOptionKey()
-
-
-
Constructor Detail
-
OptionChangedEvent
@Deprecated public OptionChangedEvent(java.lang.String optionKey, java.lang.String oldValue, java.lang.String newValue)
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
public OptionChangedEvent(java.lang.String optionKey, java.lang.Object oldValue, java.lang.Object newValue)
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 Detail
-
getOptionKey
public java.lang.String getOptionKey()
- Returns:
- Returns the identification key of the option associated with this event.
-
getOldValue
@Deprecated public java.lang.String 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 public java.lang.String 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
public java.lang.Object 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
public java.lang.Object 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.
-
-