Class OptionChangedEvent

java.lang.Object
ro.sync.ecss.extensions.api.OptionChangedEvent

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class OptionChangedEvent extends Object
Represents an event which indicates that the value of an option has been changed.
  • Constructor Details

    • OptionChangedEvent

      @Deprecated public OptionChangedEvent(String optionKey, String oldValue, String newValue)
      Deprecated.
      The constructor of the option changed event. This constructor is deprecated, you should use the OptionChangedEvent(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(String optionKey, Object oldValue, 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 Details

    • getOptionKey

      public String getOptionKey()
      Returns:
      Returns the identification key of the option associated with this event.
    • getOldValue

      @Deprecated public String getOldValue()
      Deprecated.
      Get the old value casted as a string. This method is deprecated, you should use the getOldObjectValue() method instead.
      Returns:
      Returns the old value of the option associated with this event.
    • getNewValue

      @Deprecated public String getNewValue()
      Deprecated.
      Get the new value casted as a string. This method is deprecated, you should use the getNewObjectValue() method instead.
      Returns:
      Returns the new value of the option associated with this event.
    • getOldObjectValue

      public 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 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.