Class IntegrationEventFilter

java.lang.Object
org.alfresco.event.sdk.integration.filter.IntegrationEventFilter
All Implemented Interfaces:
org.springframework.integration.core.GenericSelector<org.springframework.messaging.Message<?>>, org.springframework.integration.core.MessageSelector

public class IntegrationEventFilter extends Object implements org.springframework.integration.core.MessageSelector
MessageSelector implementation that is simply a wrapper of a EventFilter. This way any EventFilter can be used in a Spring Integration context.
  • Method Details

    • of

      public static IntegrationEventFilter of(org.alfresco.event.sdk.handling.filter.EventFilter eventFilter)
      Obtain a IntegrationEventFilter that filters following the conditions of a EventFilter.
      Parameters:
      eventFilter - given EventFilter to be applied
      Returns:
      created IntegrationEventFilter
    • accept

      public boolean accept(org.springframework.messaging.Message<?> source)
      Specified by:
      accept in interface org.springframework.integration.core.GenericSelector<org.springframework.messaging.Message<?>>
      Specified by:
      accept in interface org.springframework.integration.core.MessageSelector