public class ListPermissionsStatement extends AuthorizationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Permission> |
permissions |
protected boolean |
recursive |
protected IResource |
resource |
bindVariables
Constructor and Description |
---|
ListPermissionsStatement(java.util.Set<Permission> permissions,
IResource resource,
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) |
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
protected final java.util.Set<Permission> permissions
protected IResource resource
protected final boolean recursive
public ListPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee, boolean recursive)
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public void authorize(ClientState state)
CQLStatement
state
- the current client statepublic ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthorizationStatement
RequestValidationException
RequestExecutionException
public java.lang.String toString()
toString
in class AuthorizationStatement
public AuditLogContext getAuditLogContext()
CQLStatement
Copyright © 2009- The Apache Software Foundation