Class ListRolesStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthorizationStatement
-
- org.apache.cassandra.cql3.statements.ListRolesStatement
-
- All Implemented Interfaces:
CQLStatement
- Direct Known Subclasses:
ListUsersStatement
public class ListRolesStatement extends AuthorizationStatement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description ListRolesStatement()
ListRolesStatement(RoleName grantee, boolean recursive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.cassandra.cql3.statements.AuthorizationStatement
execute, executeLocally, maybeCorrectResource, prepare
-
Methods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Constructor Detail
-
ListRolesStatement
public ListRolesStatement()
-
ListRolesStatement
public ListRolesStatement(RoleName grantee, boolean recursive)
-
-
Method Detail
-
validate
public void validate(ClientState state) throws UnauthorizedException, InvalidRequestException
Description copied from interface:CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state
- the current client state- Throws:
UnauthorizedException
InvalidRequestException
-
authorize
public void authorize(ClientState state) throws InvalidRequestException
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
state
- the current client state- Throws:
InvalidRequestException
-
execute
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
- Specified by:
execute
in classAuthorizationStatement
- Throws:
RequestValidationException
RequestExecutionException
-
formatResults
protected ResultMessage formatResults(java.util.List<RoleResource> sortedRoles)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAuthorizationStatement
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
-