Package com.aquima.interactions.rule.tms
Class TmsProfileEventListener
java.lang.Object
com.aquima.interactions.rule.tms.TmsProfileEventListener
- All Implemented Interfaces:
IEventListener
,IInstanceListener
,IValueListener
,Serializable
This class listens to the event of the internal profile, and updates the TMS state accordingly.
- Since:
- 7.0
- Author:
- a.pragt
- See Also:
-
Field Summary
Fields inherited from interface com.aquima.interactions.profile.IInstanceListener
TYPE
Fields inherited from interface com.aquima.interactions.profile.IValueListener
TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
This method should return a bit-mask containing the event types the listener wishes to be notified for.void
onAddValue
(IValueEvent valueEvent) This method is invoked just before the value will actually be added to the attribute.void
onClearValue
(IValueEvent valueEvent) This method is invoked just before all the values will actually be set in the attribute.void
onCreateInstance
(IInstanceEvent instanceEvent) This method invoked just after creation of the new instance.void
onDeleteInstance
(IInstanceEvent instanceEvent) This method is invoked just before deletion of the instance.void
onRemoveValue
(IValueEvent valueEvent) This method is invoked just before the value will actually be removed from the attribute.void
onSetValue
(IValueEvent valueEvent) This method is invoked just before the value will actually be set in the attribute.
-
Constructor Details
-
TmsProfileEventListener
-
-
Method Details
-
onCreateInstance
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 interfaceIInstanceListener
- Parameters:
instanceEvent
- Event object containing information about the object that triggered the event.
-
onDeleteInstance
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 interfaceIInstanceListener
- 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 interfaceIEventListener
- Returns:
- a bit-mask containing the event types the listener wishes to be notified for.
-
onAddValue
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 interfaceIValueListener
- Parameters:
valueEvent
- IValueEvent object containing event specific data.
-
onClearValue
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 interfaceIValueListener
- Parameters:
valueEvent
- IValueEvent object containing event specific data.
-
onRemoveValue
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 interfaceIValueListener
- Parameters:
valueEvent
- IValueEvent object containing event specific data.
-
onSetValue
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 interfaceIValueListener
- Parameters:
valueEvent
- IValueEvent object containing event specific data.
-