Interface RepoEventFilterApplier
- All Known Implementing Classes:
AncestorFilterApplier,AspectFilterApplier,TypeFilterApplier
public interface RepoEventFilterApplier
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisNodeAllowed(org.alfresco.repo.event.v1.model.NodeResource nodeResource, Filter filter) default booleanisNodeBeforeAllowed(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
- Parameters:
nodeResource- Current node resourcefilter- 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 allowednodeResourceBefore- Previous version of the resourcefilter- configuration- Returns:
- whether previous version of a node is allowed by supplied filter configuration
-