Class BackofficeRoleUpdatedClusterAwareEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.hybris.platform.servicelayer.event.events.AbstractEvent
com.hybris.backoffice.listeners.BackofficeRoleUpdatedClusterAwareEvent
All Implemented Interfaces:
ClusterAwareEvent, Serializable

public class BackofficeRoleUpdatedClusterAwareEvent extends AbstractEvent implements ClusterAwareEvent
An event sent to all nodes in cluster to notify about BackofficeRole update
See Also:
  • Constructor Details

    • BackofficeRoleUpdatedClusterAwareEvent

      public BackofficeRoleUpdatedClusterAwareEvent(List<PK> roles)
  • Method Details

    • canPublish

      public boolean canPublish(PublishEventContext publishEventContext)
      Description copied from interface: ClusterAwareEvent
      Decide whether this event should be broadcasted/received.
      Specified by:
      canPublish in interface ClusterAwareEvent
      Parameters:
      publishEventContext - context object containing all necessary information about target and source node Id's as well as target node groups.
      Returns:
      true if event should be published from source cluster node to target cluster node
    • getRoles

      public Collection<PK> getRoles()
      Returns:
      collection of updated roles