Package com.hybris.backoffice.listeners
Class BackofficeRoleUpdatedEventDispatcher
java.lang.Object
com.hybris.backoffice.listeners.BackofficeRoleUpdatedEventDispatcher
- All Implemented Interfaces:
AfterSaveListener
Responsible for detecting
BackofficeRoleModel changes and publish
BackofficeRoleUpdatedClusterAwareEvent event in order to notify cluster nodes about changes.-
Constructor Summary
ConstructorsConstructorDescriptionBackofficeRoleUpdatedEventDispatcher(ModelService modelService, EventService eventService) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSave(Collection<AfterSaveEvent> events) Takes real action to deal with theAfterSaveEvents.protected Collection<AfterSaveEvent>protected EventServiceprotected ModelServiceprotected booleanprotected boolean
-
Constructor Details
-
BackofficeRoleUpdatedEventDispatcher
-
-
Method Details
-
afterSave
Description copied from interface:AfterSaveListenerTakes real action to deal with theAfterSaveEvents.- Specified by:
afterSavein interfaceAfterSaveListener- Parameters:
events- all collectedAfterSaveEvents
-
shouldPerform
protected boolean shouldPerform() -
getAfterSaveEventWithBackofficeRoleUpdate
protected Collection<AfterSaveEvent> getAfterSaveEventWithBackofficeRoleUpdate(Collection<AfterSaveEvent> events) -
isBackofficeRoleChange
-
getModelService
-
getEventService
-