Class BrevoEmailChangeListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
ch.tocco.nice2.optional.newsletterbrevo.impl.listener.BrevoEmailChangeListener
- All Implemented Interfaces:
EntityFacadeListener,CommitListener,EventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordNested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
CollectingAfterFlushEntityListener.EntityContext -
Constructor Summary
ConstructorsConstructorDescriptionBrevoEmailChangeListener(PersistenceService persistenceService, BrevoService brevoService, BrevoSynchronisationService brevoSynchronisationService) -
Method Summary
Modifier and TypeMethodDescriptiongetEntityContext(Context context) booleanprotected voidintpriority()Defines execution order of allCollectingAfterFlushEntityListener.Methods inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
afterCommit, afterFlush, beforeCommit, entityChanging, entityCreating, entityDeleting, entityRelationChanging, onEntityCreating, onEntityDeleting, onEntityRelationChangingMethods 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
entityReceivedValues, handleSessionOnlyEntity
-
Constructor Details
-
BrevoEmailChangeListener
public BrevoEmailChangeListener(PersistenceService persistenceService, BrevoService brevoService, BrevoSynchronisationService brevoSynchronisationService)
-
-
Method Details
-
onAfterFlush
- Specified by:
onAfterFlushin classCollectingAfterFlushEntityListener- Returns:
- true if this listeners has made any changes to the database
-
onEntityChanging
- Overrides:
onEntityChangingin classCollectingAfterFlushEntityListener
-
priority
public int priority()Description copied from class:CollectingAfterFlushEntityListenerDefines execution order of allCollectingAfterFlushEntityListener. It is important to make sure that other listeners are not affected.- Specified by:
priorityin interfaceCommitListener- Specified by:
priorityin classCollectingAfterFlushEntityListener
-
createEntityContext
- Overrides:
createEntityContextin classCollectingAfterFlushEntityListener
-
getEntityContext
- Overrides:
getEntityContextin classCollectingAfterFlushEntityListener
-