Class GrantPermissionsStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthorizationStatement
-
- org.apache.cassandra.cql3.statements.PermissionsManagementStatement
-
- org.apache.cassandra.cql3.statements.GrantPermissionsStatement
-
- All Implemented Interfaces:
CQLStatement
public class GrantPermissionsStatement extends PermissionsManagementStatement
-
-
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.statements.PermissionsManagementStatement
grantee, permissions, resource
-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description GrantPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultMessage
execute(ClientState state)
AuditLogContext
getAuditLogContext()
Provides the context needed for audit logging statements.-
Methods inherited from class org.apache.cassandra.cql3.statements.PermissionsManagementStatement
authorize, toString, validate
-
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
-
GrantPermissionsStatement
public GrantPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee)
-
-
Method Detail
-
execute
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
- Specified by:
execute
in classAuthorizationStatement
- Throws:
RequestValidationException
RequestExecutionException
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatement
Provides the context needed for audit logging statements.
-
-