Class EntityTouchedEntityListener
java.lang.Object
ch.tocco.nice2.synchronisation.impl.entitylistener.EntityTouchedEntityListener
- All Implemented Interfaces:
EntityFacadeListener
,EventListener
checks if a specific field or relation (configured in hivemodule) was touched,
and sets the corresponding flag true
-
Constructor Summary
ConstructorDescriptionEntityTouchedEntityListener
(ClientQuestionService clientQuestionService, TextResources textResources, SynchronisationManager synchronisationManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
entityChanging
(EntityChangedEvent event) Fired when any changes are made to an entity.void
entityDeleting
(EntityFacadeEvent event) Fired when an entity is being deleted.void
Fired when a relation of an entity has been changed.void
setDataTouchedFields
(List<DataTouchedContribution> dataTouchedFields) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.entity.events.EntityFacadeListener
entityCreating, entityReceivedValues, handleSessionOnlyEntity
-
Constructor Details
-
EntityTouchedEntityListener
public EntityTouchedEntityListener(ClientQuestionService clientQuestionService, TextResources textResources, SynchronisationManager synchronisationManager)
-
-
Method Details
-
entityChanging
Description copied from interface:EntityFacadeListener
Fired when any changes are made to an entity.- Specified by:
entityChanging
in interfaceEntityFacadeListener
- Parameters:
event
- The event object.
-
entityRelationChanging
Description copied from interface:EntityFacadeListener
Fired when a relation of an entity has been changed.- Specified by:
entityRelationChanging
in interfaceEntityFacadeListener
- Parameters:
event
- The event object.
-
entityDeleting
Description copied from interface:EntityFacadeListener
Fired when an entity is being deleted.- Specified by:
entityDeleting
in interfaceEntityFacadeListener
- Parameters:
event
- The event Object
-
setDataTouchedFields
-