Class CaseDataListener
java.lang.Object
com.aquima.interactions.process.impl.CaseDataListener
- All Implemented Interfaces:
IEventListener
,IInstanceListener
,IValueListener
,Serializable
This class is used to keep the case data in database consistent with the current profile containing the data.
- Since:
- 7.1
- Author:
- O. Kerpershoek
- 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
ConstructorsModifierConstructorDescriptionprotected
CaseDataListener
(IProcessCase processCase, ProcessCaseRepository caseRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
int
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.protected void
onChangeValue
(IValueEvent valueEvent, IValue newValue) 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
-
CaseDataListener
-
-
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 interfaceIEventListener
- Returns:
- a bit-mask containing the event types the listener wishes to be notified for.
-
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.
-
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.
-
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.
-
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.
-
onChangeValue
-
didPerformUpdates
protected boolean didPerformUpdates()
-