Interface DocumentEventFilenameMatcher
- All Known Implementing Classes:
DocumentEventFilenameMatcher.EndsWithFilenameMatcher, DocumentEventFilenameMatcher.EqualsFilenameMatcher, DocumentEventFilenameMatcher.RegexFilenameMatcher, DocumentEventFilenameMatcher.StartsWithFilenameMatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy applied to a matched content-item filename by activity-bound Document Event behaviors as a
post-dispatch check before progressing the execution. One implementation per
DocumentEventFilenameFilter.MODE_EQUALS, DocumentEventFilenameFilter.MODE_STARTS_WITH,
DocumentEventFilenameFilter.MODE_ENDS_WITH and DocumentEventFilenameFilter.MODE_REGEX;
ACCEPT_ALL stands in when no filter is configured and REJECT_ALL when the configuration
is invalid (unknown mode or a regex that fails to compile — the validator catches both at deploy time, so
this is just a defense-in-depth fallback).
Use from(DocumentEventFilenameFilter) at parse time to build the right strategy once and stash
it on the DocumentEventDeclaration; the regex matcher precompiles its pattern in the process so the
runtime path stays allocation-free. All concrete strategies compare case-insensitively.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DocumentEventFilenameMatcherstatic final DocumentEventFilenameMatcher -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentEventFilenameMatcherfrom(DocumentEventFilenameFilter filter) Returns the strategy that applies the given filter.boolean
-
Field Details
-
ACCEPT_ALL
-
REJECT_ALL
-
-
Method Details
-
matches
-
from
Returns the strategy that applies the given filter. Null, empty mode, or empty pattern collapse toACCEPT_ALL. An unknown mode or a regex that fails to compile collapses toREJECT_ALL.
-