Class CaseDataChangeToMapListener

java.lang.Object
com.aquima.interactions.portal.model.process.CaseDataChangeToMapListener
All Implemented Interfaces:
IEventListener, CaseDataChangeListener, IInstanceListener, IValueListener, Serializable

public class CaseDataChangeToMapListener extends Object implements CaseDataChangeListener
Should result in a Json representation of the changes done to the profile. This listener was built with the purpose to get a Json of all the changes done to an empty profile by a mapping. v1.2 Only singleton entities (so the entity name is unique)
Author:
r.de.haard
See Also:
  • Constructor Details

    • CaseDataChangeToMapListener

      public CaseDataChangeToMapListener()
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • getChanges

      public Map<String,Map<String,Object>> getChanges()
      Specified by:
      getChanges in interface CaseDataChangeListener