Package | Description |
---|---|
org.basex.core |
Database core classes.
|
org.basex.core.users | |
org.basex.query.func.xquery |
XQuery Functions.
|
Modifier and Type | Field and Description |
---|---|
Perm |
Command.perm
Permission required to execute this command.
|
Modifier and Type | Method and Description |
---|---|
StringList |
Context.filter(Perm perm,
StringList dbs)
Filters databases to the ones that have the specified permission.
|
boolean |
Context.perm(Perm perm,
String db)
Checks if the current user has the specified permission.
|
Constructor and Description |
---|
Command(Perm perm,
boolean openDB,
String... args)
Constructor.
|
Command(Perm perm,
String... args)
Constructor for commands requiring no opened database.
|
Modifier and Type | Method and Description |
---|---|
static Perm |
Perm.get(String perm)
Returns a permission matching the specified string.
|
Perm |
Perm.max(Perm perm)
Returns the permission with more privileges.
|
Perm |
User.perm(String db)
Returns the global permission, or the permission for the specified database.
|
static Perm |
Perm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Perm[] |
Perm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Perm> |
User.locals()
Returns the local permissions.
|
Modifier and Type | Method and Description |
---|---|
void |
Users.create(String name,
String password,
Perm perm)
Stores a user and encrypted password.
|
boolean |
User.has(Perm prm)
Tests if the user has the specified permission.
|
boolean |
User.has(Perm prm,
String db)
Tests if the user has the specified permission.
|
Perm |
Perm.max(Perm perm)
Returns the permission with more privileges.
|
void |
User.perm(Perm prm,
String pattern)
Sets the permission.
|
static void |
Users.perm(User user,
Perm prm,
String pattern)
Sets the permission of a user.
|
Modifier and Type | Field and Description |
---|---|
static EnumOption<Perm> |
XQueryEval.XQueryOptions.PERMISSION
Permission.
|
Copyright © 2005–2015 BaseX Team. All rights reserved.