Class BrevoBlocklistListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener<CollectingAfterFlushEntityListener.EntityContext>
ch.tocco.nice2.optional.newsletterbrevo.impl.listener.BrevoBlocklistListener
- All Implemented Interfaces:
EntityFacadeListener,CommitListener,EventListener
public class BrevoBlocklistListener
extends CollectingAfterFlushEntityListener<CollectingAfterFlushEntityListener.EntityContext>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
CollectingAfterFlushEntityListener.EntityContext -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBrevoBlocklistListener(BrevoService brevoService, BrevoSynchronisationService synchronisationService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintpriority()Defines execution order of allCollectingAfterFlushEntityListener.Methods inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
afterCommit, afterFlush, beforeCommit, createEntityContext, entityChanging, entityCreating, entityDeleting, entityRelationChanging, getEntityContext, onEntityChanging, 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
-
Field Details
-
DISABLE_LISTENER_KEY
- See Also:
-
-
Constructor Details
-
BrevoBlocklistListener
public BrevoBlocklistListener(BrevoService brevoService, BrevoSynchronisationService synchronisationService)
-
-
Method Details
-
onAfterFlush
- Specified by:
onAfterFlushin classCollectingAfterFlushEntityListener<CollectingAfterFlushEntityListener.EntityContext>- Returns:
- true if this listeners has made any changes to the database
-
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<CollectingAfterFlushEntityListener.EntityContext>
-