Interface SearchEntityDeletedEventHandler

All Known Implementing Classes:
FacetSearchEntityDeletedEventHandler, SortOptionSearchEntityDeletedEventHandler

public interface SearchEntityDeletedEventHandler
Handler to handle events for when an entity is deleted, which is used to clean up the orphaned relationship entities when the main entity is deleted.
Since:
Search Service 2.1.4, Release Train 2.1.4, Search Service 2.2.0, Release Train 2.2.0
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(org.springframework.context.ApplicationEvent event)
    Whether the given ApplicationEvent can be handled.
    void
    handle(org.springframework.context.ApplicationEvent event)
    Handles the ApplicationEvent that represents an event for a deleted entity.
  • Method Details

    • canHandle

      boolean canHandle(org.springframework.context.ApplicationEvent event)
      Whether the given ApplicationEvent can be handled.
      Parameters:
      event - the ApplicationEvent that potentially represents an event for deleted entity
      Returns:
      true if the given ApplicationEvent can be handled, otherwise false
    • handle

      void handle(org.springframework.context.ApplicationEvent event)
      Handles the ApplicationEvent that represents an event for a deleted entity.
      Parameters:
      event - the ApplicationEvent that potentially represents an event for deleted entity