Class EventTypeFilter
java.lang.Object
org.alfresco.event.sdk.handling.filter.AbstractEventFilter
org.alfresco.event.sdk.handling.filter.EventTypeFilter
- All Implemented Interfaces:
EventFilter
EventFilter that checks if an event is classified as a specific type.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilterstatic final EventFilter -
Method Summary
Modifier and TypeMethodDescriptionstatic EventTypeFilterof(org.alfresco.repo.event.v1.model.EventType eventType) Create aEventTypeFilterfor a specific event type.booleantest(org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.Resource>> event) Evaluates this predicate on the given argument.Methods inherited from class org.alfresco.event.sdk.handling.filter.AbstractEventFilter
hasAspectAfter, hasAspectBefore, hasPropertyAfter, hasPropertyBefore, hasResourceBefore, isAssocEvent, isContentEvent, isEventWellFormed, isNodeEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.event.sdk.handling.filter.EventFilter
and, negate, or
-
Field Details
-
NODE_CREATED
-
NODE_UPDATED
-
NODE_DELETED
-
NODE
-
CHILD_ASSOC_CREATED
-
CHILD_ASSOC_DELETED
-
CHILD_ASSOC
-
PEER_ASSOC_CREATED
-
PEER_ASSOC_DELETED
-
PEER_ASSOC
-
PERMISSION_UPDATED
-
-
Method Details
-
of
Create aEventTypeFilterfor a specific event type.- Parameters:
eventType- given event type to be accepted by the filter- Returns:
- created
EventTypeFilter
-
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:EventFilterEvaluates this predicate on the given argument.- Parameters:
event- the input argument- Returns:
trueif the input argument matches the predicate, otherwisefalse
-