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

Method Users

basex-core/src/main/java/org/basex/core/users/Users.java:41–46  ·  view source on GitHub ↗

Constructor for global users. @param sopts static options

(final StaticOptions sopts)

Source from the content-addressed store, hash-verified

39 * @param sopts static options
40 */
41 public Users(final StaticOptions sopts) {
42 file = sopts.dbPath(string(Q_USERS.string()) + IO.XMLSUFFIX);
43 read();
44 // ensure that default admin user exists
45 if(get(ADMIN) == null) add(new User(ADMIN).permission(Perm.ADMIN));
46 }
47
48 /**
49 * Reads user permissions.

Callers

nothing calls this directly

Calls 6

readMethod · 0.95
getMethod · 0.95
addMethod · 0.95
permissionMethod · 0.80
dbPathMethod · 0.45
stringMethod · 0.45

Tested by

no test coverage detected