Class AspectRemovedFilter

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

public class AspectRemovedFilter extends AbstractEventFilter
EventFilter that checks if an event represents the removal of an aspect from a node in the repository.
  • Method Details

    • of

      public static AspectRemovedFilter of(String removedAspect)
      Create a AspectRemovedFilter for a specific aspect.
      Parameters:
      removedAspect - given aspect name to be accepted by the filter
      Returns:
      created AspectRemovedFilter
    • 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