Class PropertyAddedFilter
java.lang.Object
org.alfresco.event.sdk.handling.filter.AbstractEventFilter
org.alfresco.event.sdk.handling.filter.PropertyAddedFilter
- All Implemented Interfaces:
EventFilter
EventFilter that checks if an event corresponds to the addition of a specific property to a node in the repository.-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyAddedFilterObtain aPropertyAddedFilterfor a specific property.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
-
Method Details
-
of
Obtain aPropertyAddedFilterfor a specific property.- Parameters:
addedProperty- given property name to be accepted by the filter- Returns:
- created
PropertyAddedFilter
-
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
-