Class TmsProfileEventListener

java.lang.Object
com.aquima.interactions.rule.tms.TmsProfileEventListener
All Implemented Interfaces:
IEventListener, IInstanceListener, IValueListener, Serializable

public class TmsProfileEventListener extends Object implements IInstanceListener, IValueListener
This class listens to the event of the internal profile, and updates the TMS state accordingly.
Since:
7.0
Author:
a.pragt
See Also:
  • Constructor Details

    • TmsProfileEventListener

      protected TmsProfileEventListener(TmsStateManager tmsStateManager)
  • Method Details

    • onCreateInstance

      public void onCreateInstance(IInstanceEvent instanceEvent)
      Description copied from interface: IInstanceListener
      This method invoked just after creation of the new instance. The event object contains the IEntityInstance that was just created in the profile.
      Specified by:
      onCreateInstance in interface IInstanceListener
      Parameters:
      instanceEvent - Event object containing information about the object that triggered the event.
    • onDeleteInstance

      public void onDeleteInstance(IInstanceEvent instanceEvent)
      Description copied from interface: IInstanceListener
      This method is invoked just before deletion of the instance. The IEntityInstance is the instance that is being deleted
      Specified by:
      onDeleteInstance in interface IInstanceListener
      Parameters:
      instanceEvent - Event object containing information about the object that triggered the event.
    • getType

      public int getType()
      Description copied from interface: IEventListener
      This method should return a bit-mask containing the event types the listener wishes to be notified for.
      Specified by:
      getType in interface IEventListener
      Returns:
      a bit-mask containing the event types the listener wishes to be notified for.
    • onAddValue

      public void onAddValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be added to the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onAddValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onClearValue

      public void onClearValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before all the values will actually be set in the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onClearValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onRemoveValue

      public void onRemoveValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be removed from the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onRemoveValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.
    • onSetValue

      public void onSetValue(IValueEvent valueEvent)
      Description copied from interface: IValueListener
      This method is invoked just before the value will actually be set in the attribute. The value passed to this method is already converted to the format that is used internally.
      Specified by:
      onSetValue in interface IValueListener
      Parameters:
      valueEvent - IValueEvent object containing event specific data.