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 givenApplicationEvent
can be handled.- Parameters:
event
- theApplicationEvent
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 theApplicationEvent
that represents an event for a deleted entity.- Parameters:
event
- theApplicationEvent
that potentially represents an event for deleted entity
-