Class DuplicateListener
java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener<DuplicateListener.DuplicateEntityContext>
ch.tocco.nice2.duplicate.impl.search.DuplicateListener
- All Implemented Interfaces:
EntityFacadeListener,CommitListener,EventListener
public class DuplicateListener
extends CollectingAfterFlushEntityListener<DuplicateListener.DuplicateEntityContext>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ch.tocco.nice2.persist.core.api.util.CollectingAfterFlushEntityListener
CollectingAfterFlushEntityListener.EntityContext -
Constructor Summary
ConstructorsConstructorDescriptionDuplicateListener(BusinessUnitManager businessUnitManager, SecurityManager securityManager, PersistenceService persistenceService, DuplicateConfigurationService duplicateConfigurationService, DuplicateSearchService duplicateSearchService, DefaultDisplayService defaultDisplayService, NotificationService notificationService, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptionprotected DuplicateListener.DuplicateEntityContextbooleanprotected voidprotected voidprotected 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, getEntityContext, onEntityCreatingMethods 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
-
DuplicateListener
public DuplicateListener(BusinessUnitManager businessUnitManager, SecurityManager securityManager, PersistenceService persistenceService, DuplicateConfigurationService duplicateConfigurationService, DuplicateSearchService duplicateSearchService, DefaultDisplayService defaultDisplayService, NotificationService notificationService, TextResources textResources)
-
-
Method Details
-
onAfterFlush
- Specified by:
onAfterFlushin classCollectingAfterFlushEntityListener<DuplicateListener.DuplicateEntityContext>- Returns:
- true if this listeners has made any changes to the database
-
onEntityChanging
- Overrides:
onEntityChangingin classCollectingAfterFlushEntityListener<DuplicateListener.DuplicateEntityContext>
-
onEntityRelationChanging
-
onEntityDeleting
- Overrides:
onEntityDeletingin classCollectingAfterFlushEntityListener<DuplicateListener.DuplicateEntityContext>
-
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<DuplicateListener.DuplicateEntityContext>
-
createEntityContext
-