Class DropIdentityStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthenticationStatement
-
- org.apache.cassandra.cql3.statements.DropIdentityStatement
-
- All Implemented Interfaces:
CQLStatement
public class DropIdentityStatement extends AuthenticationStatement
Cqlsh statement to remove identity from identity_to_roles table. Ex: DROP IDENTITY 'testIdentity'
-
-
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 DropIdentityStatement(java.lang.String identity, boolean ifExists)
-
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)
AuditLogContext
getAuditLogContext()
Provides the context needed for audit logging statements.void
validate(ClientState state)
Perform additional validation required by the statment.-
Methods inherited from class org.apache.cassandra.cql3.statements.AuthenticationStatement
checkPermission, 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, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Method Detail
-
authorize
public void authorize(ClientState state)
Description copied from interface:CQLStatement
Perform any access verification necessary for the statement.- Parameters:
state
- the current client state
-
validate
public void validate(ClientState state)
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
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
execute
public ResultMessage execute(ClientState state) throws RequestExecutionException, RequestValidationException
- Specified by:
execute
in classAuthenticationStatement
- Throws:
RequestExecutionException
RequestValidationException
-
-