code/app/be/objectify/deadbolt/java/filters/FilterConstraints.java
public FilterFunction pattern(final String value,
                                  final PatternType patternType,
                                  final Optional<String> meta)
    {
        return pattern(value,
                       patternType,
                       meta,
                       false,
                       Optional.empty());
    }
public FilterFunction pattern(final String value,
                                  final PatternType patternType,
                                  final Optional<String> meta)
    {
        return pattern(value,
                       patternType,
                       meta,
                       false,
                       Optional.empty());
    }
A constraint that checks the permissions of a subject (if using {@link PatternType#EQUALITY} or {@link PatternType#REGEX}) or
{@link be.objectify.deadbolt.java.DynamicResourceHandler#checkPermission(String, Optional, DeadboltHandler, Http.RequestHeader)} (if
using {@link PatternType#CUSTOM}).

@param value       the constraint value
@param patternType the type of pattern matching
@param meta        additional information passed to {@link be.objectify.deadbolt.java.DynamicResourceHandler#checkPermission(String, Optional, DeadboltHandler, Http.RequestHeader)}
@return a function that wraps the constraint
@see ConstraintLogic#pattern(Http.RequestHeader, DeadboltHandler, Optional, String, PatternType, Optional, boolean, Function, TriFunction, ConstraintPoint)