Class NodeTypeFilter

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

public class NodeTypeFilter extends AbstractEventFilter
EventFilter that checks if an event is related to a node with an specific type.
  • Method Details

    • of

      public static NodeTypeFilter of(String acceptedNodeType)
      Obtain a NodeTypeFilter for a specific type.
      Parameters:
      acceptedNodeType - given type name to be accepted by the filter.
      Returns:
      created NodeTypeFilter
    • 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