public class ListRolesStatement extends AuthorizationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
ListRolesStatement() |
ListRolesStatement(RoleName grantee,
boolean recursive) |
Modifier and Type | Method and Description |
---|---|
void |
authorize(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(ClientState state) |
protected ResultMessage |
formatResults(java.util.List<RoleResource> sortedRoles) |
AuditLogContext |
getAuditLogContext()
Provides the context needed for audit logging statements.
|
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeLocally, maybeCorrectResource, prepare
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
public ListRolesStatement()
public ListRolesStatement(RoleName grantee, boolean recursive)
public void validate(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void authorize(ClientState state) throws InvalidRequestException
CQLStatement
state
- the current client stateInvalidRequestException
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthorizationStatement
RequestValidationException
RequestExecutionException
protected ResultMessage formatResults(java.util.List<RoleResource> sortedRoles)
public java.lang.String toString()
toString
in class AuthorizationStatement
public AuditLogContext getAuditLogContext()
CQLStatement
Copyright © 2009- The Apache Software Foundation