public class DontInterceptEntityInterceptor extends Object implements EntityIndexingInterceptor
Constructor and Description |
---|
DontInterceptEntityInterceptor() |
Modifier and Type | Method and Description |
---|---|
IndexingOverride |
onAdd(Object entity)
Triggered when an entity instance T should be added to the index, either by an event listener or by the
MassIndexer.
|
IndexingOverride |
onCollectionUpdate(Object entity)
A CollectionUpdate event is fired on collections included in an indexed entity, for example when using
IndexedEmbedded This event is triggered on each indexed domain instance T contained in such a collection;
this is generally similar to a EntityIndexingInterceptor.onUpdate(Object) event. |
IndexingOverride |
onDelete(Object entity)
Triggered when an entity instance T should be deleted from the index.
|
IndexingOverride |
onUpdate(Object entity)
Triggered when an entity instance T should be updated in the index.
|
public IndexingOverride onAdd(Object entity)
EntityIndexingInterceptor
onAdd
in interface EntityIndexingInterceptor
entity
- The entity instanceIndexingOverride.APPLY_DEFAULT
to have the instance be added to the index as normal; return a
different value to override the behaviour.public IndexingOverride onUpdate(Object entity)
EntityIndexingInterceptor
onUpdate
in interface EntityIndexingInterceptor
entity
- The entity instanceIndexingOverride.APPLY_DEFAULT
to have the instance removed and re-added to the index as
normal; return a different value to override the behaviour.public IndexingOverride onDelete(Object entity)
EntityIndexingInterceptor
onDelete
in interface EntityIndexingInterceptor
entity
- The entity instanceIndexingOverride.APPLY_DEFAULT
to have the instance removed from the index as normal;
return a different value to override the behaviour.public IndexingOverride onCollectionUpdate(Object entity)
EntityIndexingInterceptor
IndexedEmbedded
This event is triggered on each indexed domain instance T contained in such a collection;
this is generally similar to a EntityIndexingInterceptor.onUpdate(Object)
event.onCollectionUpdate
in interface EntityIndexingInterceptor
entity
- The entity instanceIndexingOverride.APPLY_DEFAULT
to have the instance removed and re-added to the index as
normal; return a different value to override the behaviour.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved