Package org.basex.core.cmd
Class CreateUser
- java.lang.Object
-
- org.basex.core.jobs.Job
-
- org.basex.core.Command
-
- org.basex.core.cmd.CreateUser
-
public final class CreateUser extends Command
Evaluates the 'create user' command and creates a new user.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Constructor Description CreateUser(String name, String pw)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLocks()
Collects lock strings (databases, special identifiers) when registering a query.void
build(CmdBuilder cb)
Builds a string representation from the command.protected boolean
run()
Executes the command and serializes the result (internal call).-
Methods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, close, error, execute, execute, getOption, getOption, info, info, init, newData, run, run, setInput, setInput, stoppable, supportsProg, toString, toString, updated, updating
-
-
-
-
Method Detail
-
run
protected boolean run()
Description copied from class:Command
Executes the command and serializes the result (internal call).
-
build
public void build(CmdBuilder cb)
Description copied from class:Command
Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
-
-