public boolean matches()

in src/main/java/org/apache/sling/resourceaccesssecurity/impl/ResourceAccessGateHandler.java [82:97]


    public boolean matches( final String path, final ResourceAccessGate.Operation operation ) {
        boolean returnValue = false;

        if ( operations.contains( operation ) ) {
            if (path != null) {
                final Matcher match = pathPattern.matcher(path);
                returnValue = match.matches();
            } else {
                // if no path is given just add every ResourceAccessGate for
                // security reason
                return true;
            }
        }

        return returnValue;
    }