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
-
Method Details
-
canHandle
boolean canHandle(org.springframework.context.ApplicationEvent event) Whether the givenApplicationEventcan be handled.- Parameters:
event- theApplicationEventthat potentially represents an event for deleted entity- Returns:
- true if the given
ApplicationEventcan be handled, otherwise false
-
handle
void handle(org.springframework.context.ApplicationEvent event) Handles theApplicationEventthat represents an event for a deleted entity.- Parameters:
event- theApplicationEventthat potentially represents an event for deleted entity
-