Class ListPermissionsStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthorizationStatement
-
- org.apache.cassandra.cql3.statements.ListPermissionsStatement
-
- All Implemented Interfaces:
CQLStatement
public class ListPermissionsStatement extends AuthorizationStatement
-
-
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 java.util.Set<Permission>permissionsprotected booleanrecursiveprotected IResourceresource-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description ListPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee, boolean recursive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthorize(ClientState state)Perform any access verification necessary for the statement.ResultMessageexecute(ClientState state)AuditLogContextgetAuditLogContext()Provides the context needed for audit logging statements.java.lang.StringtoString()voidvalidate(ClientState state)Perform additional validation required by the statment.-
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
-
-
-
-
Field Detail
-
permissions
protected final java.util.Set<Permission> permissions
-
resource
protected IResource resource
-
recursive
protected final boolean recursive
-
-
Constructor Detail
-
ListPermissionsStatement
public ListPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee, boolean recursive)
-
-
Method Detail
-
validate
public void validate(ClientState state) throws RequestValidationException
Description copied from interface:CQLStatementPerform additional validation required by the statment. To be overriden by subclasses if needed.- Parameters:
state- the current client state- Throws:
RequestValidationException
-
authorize
public void authorize(ClientState state)
Description copied from interface:CQLStatementPerform any access verification necessary for the statement.- Parameters:
state- the current client state
-
execute
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
- Specified by:
executein classAuthorizationStatement- Throws:
RequestValidationExceptionRequestExecutionException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAuthorizationStatement
-
getAuditLogContext
public AuditLogContext getAuditLogContext()
Description copied from interface:CQLStatementProvides the context needed for audit logging statements.
-
-