public abstract class PermissionAlteringStatement extends AuthorizationStatement
ParsedStatement.Prepared
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Permission> |
permissions |
protected DataResource |
resource |
protected java.lang.String |
username |
Modifier | Constructor and Description |
---|---|
protected |
PermissionAlteringStatement(java.util.Set<Permission> permissions,
IResource resource,
java.lang.String username) |
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, getBoundsTerms, maybeCorrectResource, prepare
setBoundTerms
protected final java.util.Set<Permission> permissions
protected DataResource resource
protected final java.lang.String username
protected PermissionAlteringStatement(java.util.Set<Permission> permissions, IResource resource, java.lang.String username)
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 © 2013 The Apache Software Foundation