Class SearchIndexEventHandler
java.lang.Object
org.tailormap.api.repository.events.SearchIndexEventHandler
Event handler for Solr indexes; when a
SearchIndex
is created, updated or deleted a
Task
is associated.-
Constructor Summary
ConstructorDescriptionSearchIndexEventHandler
(org.quartz.Scheduler scheduler, TaskManagerService taskManagerService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterDeleteSearchIndexEventHandler
(SearchIndex searchIndex) Handle after delete.void
beforeSaveSearchIndexEventHandler
(SearchIndex searchIndex) Handle before save.
-
Constructor Details
-
SearchIndexEventHandler
public SearchIndexEventHandler(@Autowired org.quartz.Scheduler scheduler, @Autowired TaskManagerService taskManagerService)
-
-
Method Details
-
afterDeleteSearchIndexEventHandler
public void afterDeleteSearchIndexEventHandler(SearchIndex searchIndex) throws org.quartz.SchedulerException Handle after delete. Delete any associated task.- Parameters:
searchIndex
- the search index that was deleted- Throws:
org.quartz.SchedulerException
-
beforeSaveSearchIndexEventHandler
public void beforeSaveSearchIndexEventHandler(SearchIndex searchIndex) throws org.quartz.SchedulerException Handle before save. Create or update the associated task.- Parameters:
searchIndex
- the search index that was saved- Throws:
org.quartz.SchedulerException
- if the task could not be created or updated
-