java.lang.Object
org.alfresco.hxi_connector.live_ingester.adapters.messaging.repository.filter.TypeFilterApplier
All Implemented Interfaces:
RepoEventFilterApplier

@Component public class TypeFilterApplier extends Object implements RepoEventFilterApplier
  • Constructor Details

    • TypeFilterApplier

      public TypeFilterApplier()
  • Method Details

    • isNodeAllowed

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

      public boolean isNodeBeforeAllowed(boolean currentlyAllowed, org.alfresco.repo.event.v1.model.NodeResource nodeResourceBefore, Filter filter)
      Description copied from interface: RepoEventFilterApplier
      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.
      Specified by:
      isNodeBeforeAllowed in interface RepoEventFilterApplier
      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