public class CreateUserStatement extends AuthenticationStatement
ParsedStatement.Prepared
Constructor and Description |
---|
CreateUserStatement(java.lang.String username,
UserOptions opts,
boolean superuser) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundsTerms, prepare
setBoundTerms
public CreateUserStatement(java.lang.String username, UserOptions opts, boolean superuser)
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public void checkAccess(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthenticationStatement
RequestValidationException
RequestExecutionException
Copyright © 2013 The Apache Software Foundation