Class AssocTypeFilter

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

public class AssocTypeFilter extends AbstractEventFilter
EventFilter that checks if an event corresponds to a specific association type. This doesn't distinguish if the event is representing peer or child associations.
  • Method Details

    • of

      public static AssocTypeFilter of(String acceptedAssocType)
      Obtain a AssocTypeFilter for a specific association type.
      Parameters:
      acceptedAssocType - given association type to be filtered
      Returns:
      created AssocTypeFilter
    • 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