Class EventTypeFilter
- java.lang.Object
-
- org.alfresco.event.sdk.handling.filter.AbstractEventFilter
-
- org.alfresco.event.sdk.handling.filter.EventTypeFilter
-
- All Implemented Interfaces:
EventFilter
public class EventTypeFilter extends AbstractEventFilter
EventFilterthat checks if an event is classified as a specific type.
-
-
Field Summary
Fields Modifier and Type Field Description static EventFilterCHILD_ASSOCstatic EventFilterCHILD_ASSOC_CREATEDstatic EventFilterCHILD_ASSOC_DELETEDstatic EventFilterNODEstatic EventFilterNODE_CREATEDstatic EventFilterNODE_DELETEDstatic EventFilterNODE_UPDATEDstatic EventFilterPEER_ASSOCstatic EventFilterPEER_ASSOC_CREATEDstatic EventFilterPEER_ASSOC_DELETEDstatic EventFilterPERMISSION_UPDATED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventTypeFilterof(EventType eventType)Create aEventTypeFilterfor a specific event type.booleantest(RepoEvent<DataAttributes<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, isNodeEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.event.sdk.handling.filter.EventFilter
and, negate, or
-
-
-
-
Field Detail
-
NODE_CREATED
public static final EventFilter NODE_CREATED
-
NODE_UPDATED
public static final EventFilter NODE_UPDATED
-
NODE_DELETED
public static final EventFilter NODE_DELETED
-
NODE
public static final EventFilter NODE
-
CHILD_ASSOC_CREATED
public static final EventFilter CHILD_ASSOC_CREATED
-
CHILD_ASSOC_DELETED
public static final EventFilter CHILD_ASSOC_DELETED
-
CHILD_ASSOC
public static final EventFilter CHILD_ASSOC
-
PEER_ASSOC_CREATED
public static final EventFilter PEER_ASSOC_CREATED
-
PEER_ASSOC_DELETED
public static final EventFilter PEER_ASSOC_DELETED
-
PEER_ASSOC
public static final EventFilter PEER_ASSOC
-
PERMISSION_UPDATED
public static final EventFilter PERMISSION_UPDATED
-
-
Method Detail
-
of
public static EventTypeFilter of(EventType eventType)
Create aEventTypeFilterfor a specific event type.- Parameters:
eventType- given event type to be accepted by the filter- Returns:
- created
EventTypeFilter
-
test
public boolean test(RepoEvent<DataAttributes<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
-
-