public abstract class RoleManagementStatement extends AuthenticationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
Modifier and Type | Field and Description |
---|---|
protected RoleResource |
grantee |
protected RoleResource |
role |
bindVariables
Constructor and Description |
---|
RoleManagementStatement(RoleName name,
RoleName grantee) |
Modifier and Type | Method and Description |
---|---|
void |
authorize(ClientState state)
Perform any access verification necessary for the statement.
|
java.lang.String |
toString() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
checkPermission, execute, execute, executeLocally, obfuscatePassword, prepare
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
protected final RoleResource role
protected final RoleResource grantee
public void authorize(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation