MCPcopy Create free account
hub / github.com/BaseXdb/basex / find

Method find

basex-core/src/main/java/org/basex/core/users/User.java:224–229  ·  view source on GitHub ↗

Returns the first entry for the specified database. @param pattern database pattern @return entry, or null if no entry exists

(final String pattern)

Source from the content-addressed store, hash-verified

222 * @return entry, or {@code null} if no entry exists
223 */
224 synchronized Entry<String, Perm> find(final String pattern) {
225 for(final Entry<String, Perm> entry : patterns.entrySet()) {
226 if(Databases.regex(entry.getKey()).matcher(pattern).matches()) return entry;
227 }
228 return null;
229 }
230
231 /**
232 * Sets a global permission.

Callers 1

permissionMethod · 0.95

Calls 4

regexMethod · 0.95
getKeyMethod · 0.80
matchesMethod · 0.45
matcherMethod · 0.45

Tested by

no test coverage detected