public abstract class PermissionsManagementStatement extends AuthorizationStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
Modifier and Type | Field and Description |
---|---|
protected RoleResource |
grantee |
protected java.util.Set<Permission> |
permissions |
protected IResource |
resource |
bindVariables
Modifier | Constructor and Description |
---|---|
protected |
PermissionsManagementStatement(java.util.Set<Permission> permissions,
IResource resource,
RoleName grantee) |
Modifier and Type | Method and 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.
|
execute, execute, executeLocally, maybeCorrectResource, prepare
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
protected final java.util.Set<Permission> permissions
protected IResource resource
protected final RoleResource grantee
protected PermissionsManagementStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee)
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public void authorize(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
public java.lang.String toString()
toString
in class AuthorizationStatement
Copyright © 2009- The Apache Software Foundation