agave-files/files-core/src/main/java/org/iplantc/service/io/util/PathResolver.java
/**
         * Checks to see if the given URI matches this {@link FilePathRegex} value
         * in the context of the current tenant.
         * 
         * @param uri the url to check
         * @param tenantId the tenant to check against. Defaults to current tenant if null 
         * @return true if the {@code uri} matches any known regex, false otherwise
         */
Checks to see if the given URI matches this  FilePathRegex value
in the context of the current tenant.

@param uri the url to check
@param tenantId the tenant to check against. Defaults to current tenant if null
@return true if the  uri matches any known regex, false otherwise
Checks to see if the given URI matches this FilePathRegex value in the context of the current tenant . @param uri the url to check @param tenantId the tenant to check against . Defaults to current tenant if null @return true if the uri matches any known regex false otherwise
public boolean matches(String path, String tenantId) {
            if (StringUtils.isEmpty(path)) {
                return true;
            } else if (this == FILES_URI_CUSTOM_SYSTEM) {
                return (path.matches("(?:listings|media|pems|meta|history|index)/system/(.*)") && path.matches(this.regexStub));
            } else {
                return path.matches(this.regexStub);
            }
        }
public boolean matches ( String path , String tenantId ) { if ( StringUtils . isEmpty ( path ) ) { return true ; } else if ( this == FILES_URI_CUSTOM_SYSTEM ) { return ( path . matches ( "(?:listings|media|pems|meta|history|index)/system/(.*)" ) && path . matches ( this . regexStub ) ) ; } else { return path . matches ( this . regexStub ) ; } }
Checks to see if the given URI matches this {@link FilePathRegex} value
 in the context of the current tenant.
Checks to see if the given URI matches this { @link FilePathRegex } value in the context of the current tenant .