Package io.jmix.search.listener
Class EntityTrackingListener
java.lang.Object
io.jmix.search.listener.EntityTrackingListener
- All Implemented Interfaces:
DataStoreCustomizer
,DataStoreEventListener
,org.springframework.core.Ordered
@Component("search_EntityTrackingListener")
public class EntityTrackingListener
extends Object
implements DataStoreEventListener, DataStoreCustomizer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
protected IndexConfigurationManager
protected IndexingQueueManager
protected Metadata
protected MetadataTools
protected SearchProperties
protected StoreAwareLocator
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getEntityIdsDependentOnRemovedEntity
(Id<?> removedEntityId, MetaClass metaClass) getEntityIdsDependentOnUpdatedEntity
(Id<?> updatedEntityId, MetaClass metaClass, AttributeChanges changes) protected boolean
protected boolean
protected boolean
isEntityClassCanBeProcessed
(Class<?> entityClass) protected boolean
protected boolean
isUpdateRequired
(Class<?> entityClass, AttributeChanges changes) loadDependentEntityIds
(Id<?> targetEntityId, MetaClass targetMetaClass, Map<MetaClass, Set<MetaPropertyPath>> dependencyMetaData) void
performLoadingDependentEntityIds
(MetaClass metaClass, io.jmix.search.listener.EntityTrackingListener.DependentEntitiesQuery dependentEntitiesQuery) protected void
processEntityChangedEvent
(EntityChangedEvent<?> event) protected void
processRemovedEntity
(Object removedEntity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.datastore.DataStoreEventListener
afterEntityLoad, beforeEntityCount, beforeEntityLoad, beforeValueLoad, entityDeleting, entityLoading, entityReload, entitySaving, getOrder
-
Field Details
-
metadata
-
indexConfigurationManager
-
dataManager
-
indexingQueueManager
-
storeAwareLocator
-
searchProperties
-
metadataTools
-
removalDependencies
-
-
Constructor Details
-
EntityTrackingListener
public EntityTrackingListener()
-
-
Method Details
-
customize
- Specified by:
customize
in interfaceDataStoreCustomizer
-
beforeEntitySave
- Specified by:
beforeEntitySave
in interfaceDataStoreEventListener
-
onEntityChangedBeforeCommit
-
processRemovedEntity
-
processEntityChangedEvent
-
isUpdateRequired
-
isChangeTrackingEnabled
protected boolean isChangeTrackingEnabled() -
isRemovedEntityProcessingRequired
-
isEntityChangedEventProcessingRequired
-
isEntityClassCanBeProcessed
-
getEntityIdsDependentOnUpdatedEntity
protected Set<Id<?>> getEntityIdsDependentOnUpdatedEntity(Id<?> updatedEntityId, MetaClass metaClass, AttributeChanges changes) -
getEntityIdsDependentOnRemovedEntity
-
loadDependentEntityIds
-
performLoadingDependentEntityIds
-