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
ConstructorsConstructorDescriptionEntityTouchedEntityListener(ClientQuestionService clientQuestionService, TextResources textResources, SynchronisationManager synchronisationManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidentityChanging(EntityChangedEvent event) Fired when any changes are made to an entity.voidentityDeleting(EntityFacadeEvent event) Fired when an entity is being deleted.voidFired when a relation of an entity has been changed.voidsetDataTouchedFields(List<DataTouchedContribution> dataTouchedFields) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:EntityFacadeListenerFired when any changes are made to an entity.- Specified by:
entityChangingin interfaceEntityFacadeListener- Parameters:
event- The event object.
-
entityRelationChanging
Description copied from interface:EntityFacadeListenerFired when a relation of an entity has been changed.- Specified by:
entityRelationChangingin interfaceEntityFacadeListener- Parameters:
event- The event object.
-
entityDeleting
Description copied from interface:EntityFacadeListenerFired when an entity is being deleted.- Specified by:
entityDeletingin interfaceEntityFacadeListener- Parameters:
event- The event Object
-
setDataTouchedFields
-