Class EventTypeFilter

java.lang.Object
org.alfresco.event.sdk.handling.filter.AbstractEventFilter
org.alfresco.event.sdk.handling.filter.EventTypeFilter
All Implemented Interfaces:
EventFilter

public class EventTypeFilter extends AbstractEventFilter
EventFilter that checks if an event is classified as a specific type.
  • Field Details

    • NODE_CREATED

      public static final EventFilter NODE_CREATED
    • NODE_UPDATED

      public static final EventFilter NODE_UPDATED
    • NODE_DELETED

      public static final EventFilter NODE_DELETED
    • NODE

      public static final EventFilter NODE
    • CHILD_ASSOC_CREATED

      public static final EventFilter CHILD_ASSOC_CREATED
    • CHILD_ASSOC_DELETED

      public static final EventFilter CHILD_ASSOC_DELETED
    • CHILD_ASSOC

      public static final EventFilter CHILD_ASSOC
    • PEER_ASSOC_CREATED

      public static final EventFilter PEER_ASSOC_CREATED
    • PEER_ASSOC_DELETED

      public static final EventFilter PEER_ASSOC_DELETED
    • PEER_ASSOC

      public static final EventFilter PEER_ASSOC
    • PERMISSION_UPDATED

      public static final EventFilter PERMISSION_UPDATED
  • Method Details

    • of

      public static EventTypeFilter of(org.alfresco.repo.event.v1.model.EventType eventType)
      Create a EventTypeFilter for a specific event type.
      Parameters:
      eventType - given event type to be accepted by the filter
      Returns:
      created EventTypeFilter
    • test

      public boolean test(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> event)
      Description copied from interface: EventFilter
      Evaluates this predicate on the given argument.
      Parameters:
      event - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false