All Known Implementing Classes:
AncestorFilterApplier, AspectFilterApplier, TypeFilterApplier

public interface RepoEventFilterApplier
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isNodeAllowed(org.alfresco.repo.event.v1.model.NodeResource nodeResource, Filter filter)
     
    default boolean
    isNodeBeforeAllowed(boolean currentlyAllowed, org.alfresco.repo.event.v1.model.NodeResource nodeResourceBefore, Filter filter)
    Default implementation can be used to filter based on properties that are always present in the "before" resource.
  • Method Details

    • isNodeAllowed

      boolean isNodeAllowed(org.alfresco.repo.event.v1.model.NodeResource nodeResource, Filter filter)
      Parameters:
      nodeResource - Current node resource
      filter - configuration
      Returns:
      If node is allowed by supplied filter configuration
    • isNodeBeforeAllowed

      default boolean isNodeBeforeAllowed(boolean currentlyAllowed, org.alfresco.repo.event.v1.model.NodeResource nodeResourceBefore, Filter filter)
      Default implementation can be used to filter based on properties that are always present in the "before" resource. It is not suitable if the property is omitted when unchanged and therefore needs a specific implementation.
      Parameters:
      currentlyAllowed - If current version of the node is allowed
      nodeResourceBefore - Previous version of the resource
      filter - configuration
      Returns:
      whether previous version of a node is allowed by supplied filter configuration