public class org.apache.cassandra.cql3.statements.GrantPermissionsStatement extends org.apache.cassandra.cql3.statements.PermissionsManagementStatement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cql3.statements.GrantPermissionsStatement
super_class: org.apache.cassandra.cql3.statements.PermissionsManagementStatement
{
public void <init>(java.util.Set<org.apache.cassandra.auth.Permission>, org.apache.cassandra.auth.IResource, org.apache.cassandra.cql3.RoleName);
descriptor: (Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/cql3/RoleName;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 // org.apache.cassandra.cql3.statements.GrantPermissionsStatement this
start local 1 // java.util.Set permissions
start local 2 // org.apache.cassandra.auth.IResource resource
start local 3 // org.apache.cassandra.cql3.RoleName grantee
0: .line 35
aload 0 /* this */
aload 1 /* permissions */
aload 2 /* resource */
aload 3 /* grantee */
invokespecial org.apache.cassandra.cql3.statements.PermissionsManagementStatement.<init>:(Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/cql3/RoleName;)V
1: .line 36
return
end local 3 // org.apache.cassandra.cql3.RoleName grantee
end local 2 // org.apache.cassandra.auth.IResource resource
end local 1 // java.util.Set permissions
end local 0 // org.apache.cassandra.cql3.statements.GrantPermissionsStatement this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/GrantPermissionsStatement;
0 2 1 permissions Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;
0 2 2 resource Lorg/apache/cassandra/auth/IResource;
0 2 3 grantee Lorg/apache/cassandra/cql3/RoleName;
Signature: (Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/cql3/RoleName;)V
MethodParameters:
Name Flags
permissions
resource
grantee
public org.apache.cassandra.transport.messages.ResultMessage execute(org.apache.cassandra.service.ClientState);
descriptor: (Lorg/apache/cassandra/service/ClientState;)Lorg/apache/cassandra/transport/messages/ResultMessage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 // org.apache.cassandra.cql3.statements.GrantPermissionsStatement this
start local 1 // org.apache.cassandra.service.ClientState state
0: .line 40
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAuthorizer:()Lorg/apache/cassandra/auth/IAuthorizer;
aload 1 /* state */
invokevirtual org.apache.cassandra.service.ClientState.getUser:()Lorg/apache/cassandra/auth/AuthenticatedUser;
aload 0 /* this */
getfield org.apache.cassandra.cql3.statements.GrantPermissionsStatement.permissions:Ljava/util/Set;
aload 0 /* this */
getfield org.apache.cassandra.cql3.statements.GrantPermissionsStatement.resource:Lorg/apache/cassandra/auth/IResource;
aload 0 /* this */
getfield org.apache.cassandra.cql3.statements.GrantPermissionsStatement.grantee:Lorg/apache/cassandra/auth/RoleResource;
invokeinterface org.apache.cassandra.auth.IAuthorizer.grant:(Lorg/apache/cassandra/auth/AuthenticatedUser;Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/auth/RoleResource;)V
1: .line 41
aconst_null
areturn
end local 1 // org.apache.cassandra.service.ClientState state
end local 0 // org.apache.cassandra.cql3.statements.GrantPermissionsStatement this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cql3/statements/GrantPermissionsStatement;
0 2 1 state Lorg/apache/cassandra/service/ClientState;
Exceptions:
throws org.apache.cassandra.exceptions.RequestValidationException, org.apache.cassandra.exceptions.RequestExecutionException
MethodParameters:
Name Flags
state
}
SourceFile: "GrantPermissionsStatement.java"