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

Method permission

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

Returns the global permission, or the permission for the specified database. @param db database pattern (can be null) @return permission

(final String db)

Source from the content-addressed store, hash-verified

209 * @return permission
210 */
211 public synchronized Perm permission(final String db) {
212 if(db != null) {
213 final Entry<String, Perm> entry = find(db);
214 if(entry != null) return entry.getValue();
215 }
216 return permission;
217 }
218
219 /**
220 * Returns the first entry for the specified database.

Callers 6

hasMethod · 0.95
runMethod · 0.95
evalMethod · 0.95
UsersMethod · 0.80
infoMethod · 0.80
grantMethod · 0.80

Calls 4

findMethod · 0.95
getValueMethod · 0.45
isEmptyMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected