public abstract class PermissionsManagementStatement extends AuthorizationStatement
ParsedStatement.Prepared
Modifier and Type | Field and Description |
---|---|
protected RoleResource |
grantee |
protected java.util.Set<Permission> |
permissions |
protected IResource |
resource |
Modifier | Constructor and Description |
---|---|
protected |
PermissionsManagementStatement(java.util.Set<Permission> permissions,
IResource resource,
RoleName grantee) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, execute, executeInternal, getBoundTerms, maybeCorrectResource, prepare
getBoundVariables, getFunctions, setBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
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 checkAccess(ClientState state) throws UnauthorizedException
CQLStatement
state
- the current client stateUnauthorizedException
Copyright © 2017 The Apache Software Foundation