Class MimeTypeFilter
- java.lang.Object
-
- org.alfresco.event.sdk.handling.filter.AbstractEventFilter
-
- org.alfresco.event.sdk.handling.filter.MimeTypeFilter
-
- All Implemented Interfaces:
EventFilter
public class MimeTypeFilter extends AbstractEventFilter
EventFilterthat checks if an events makes reference to a content with a specific mime-type within a set of them.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MimeTypeFilterof(String... acceptedMimeTypes)Obtain aMimeTypeFilterfor a specific mime-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
-
-
-
-
Method Detail
-
of
public static MimeTypeFilter of(String... acceptedMimeTypes)
Obtain aMimeTypeFilterfor a specific mime-type.- Parameters:
acceptedMimeTypes- given list of mime-type's that must be accepted by the filter- Returns:
- created
MimeTypeFilter
-
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
-
-