public class ListRolesStatement extends AuthorizationStatement
CQLStatement.RawbindVariables| 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, preparesetBindVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionspublic ListRolesStatement()
public ListRolesStatement(RoleName grantee, boolean recursive)
public void validate(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void authorize(ClientState state) throws InvalidRequestException
CQLStatementstate - the current client stateInvalidRequestExceptionpublic ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute in class AuthorizationStatementRequestValidationExceptionRequestExecutionExceptionprotected ResultMessage formatResults(java.util.List<RoleResource> sortedRoles)
public java.lang.String toString()
toString in class AuthorizationStatementpublic AuditLogContext getAuditLogContext()
CQLStatementCopyright © 2009-2020 The Apache Software Foundation