Class TypeFilterApplier
java.lang.Object
org.alfresco.hxi_connector.live_ingester.adapters.messaging.repository.filter.TypeFilterApplier
- All Implemented Interfaces:
RepoEventFilterApplier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNodeAllowed(org.alfresco.repo.event.v1.model.NodeResource nodeResource, Filter filter) 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.
-
Constructor Details
-
TypeFilterApplier
public TypeFilterApplier()
-
-
Method Details
-
isNodeAllowed
public boolean isNodeAllowed(org.alfresco.repo.event.v1.model.NodeResource nodeResource, Filter filter) - Specified by:
isNodeAllowedin interfaceRepoEventFilterApplier- Parameters:
nodeResource- Current node resourcefilter- 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:RepoEventFilterApplierDefault 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:
isNodeBeforeAllowedin interfaceRepoEventFilterApplier- 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
-