|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.DropUser
public final class DropUser
Evaluates the 'drop user' command and drops a user.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
DropUser(java.lang.String name)
Default constructor. |
|
DropUser(java.lang.String name,
java.lang.String db)
Constructor for dropping local database users. |
Method Summary | |
---|---|
void |
build(CmdBuilder cb)
Builds a string representation from the command. |
void |
databases(LockResult lr)
Adds the names of the databases that may be touched by the process. |
protected static boolean |
isMD5(java.lang.String md5)
Checks if the specified string is a valid MD5 hash value. |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
protected boolean |
run(int off,
boolean opt)
Runs the command for all users and databases. |
protected boolean |
run(java.lang.String user,
java.lang.String db)
Runs the command for the specified user and database. |
Methods inherited from class org.basex.core.Command |
---|
close, databases, error, execute, execute, getOption, getOption, info, info, newData, result, run, run, setInput, setInput, stoppable, supportsProg, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, prog, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DropUser(java.lang.String name)
name
- name of userpublic DropUser(java.lang.String name, java.lang.String db)
name
- name of userdb
- database (may be null
)Method Detail |
---|
protected boolean run()
Command
run
in class Command
protected boolean run(java.lang.String user, java.lang.String db)
user
- user to be modifieddb
- database to be modified
public void databases(LockResult lr)
Proc
lr
- Container for lock result to pass aroundpublic void build(CmdBuilder cb)
Command
build
in class Command
cb
- command builderprotected boolean run(int off, boolean opt)
off
- offset for users and optional databases (off + 1
)opt
- indicates if user/database argument is optional
protected static boolean isMD5(java.lang.String md5)
md5
- string to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |