Class RoleManagementStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthenticationStatement
-
- org.apache.cassandra.cql3.statements.RoleManagementStatement
-
- All Implemented Interfaces:
CQLStatement
- Direct Known Subclasses:
GrantRoleStatement
,RevokeRoleStatement
public abstract class RoleManagementStatement extends AuthenticationStatement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected RoleResource
grantee
protected RoleResource
role
-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description RoleManagementStatement(RoleName name, RoleName grantee)
-
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.java.lang.String
toString()
void
validate(ClientState state)
Perform additional validation required by the statment.-
Methods inherited from class org.apache.cassandra.cql3.statements.AuthenticationStatement
checkPermission, execute, execute, executeLocally, obfuscatePassword, 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
getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Field Detail
-
role
protected final RoleResource role
-
grantee
protected final RoleResource grantee
-
-
Method Detail
-
authorize
public void authorize(ClientState state) throws UnauthorizedException
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
state
- the current client state- Throws:
UnauthorizedException
-
validate
public void validate(ClientState state) throws RequestValidationException
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:
RequestValidationException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-