Class SearchIndexEventHandler

java.lang.Object
org.tailormap.api.repository.events.SearchIndexEventHandler

@Component public class SearchIndexEventHandler extends Object
Event handler for Solr indexes; when a SearchIndex is created, updated or deleted a Task is associated.
  • 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