public class ListPermissionsStatement extends AuthorizationStatement
ParsedStatement.Prepared
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Permission> |
permissions |
protected boolean |
recursive |
protected IResource |
resource |
Constructor and Description |
---|
ListPermissionsStatement(java.util.Set<Permission> permissions,
IResource resource,
RoleName grantee,
boolean recursive) |
Modifier and Type | Method and Description |
---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
execute(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms, maybeCorrectResource, prepare
getBoundVariables, getFunctions, 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 boolean recursive
public ListPermissionsStatement(java.util.Set<Permission> permissions, IResource resource, RoleName grantee, boolean recursive)
public void validate(ClientState state) throws RequestValidationException
CQLStatement
state
- the current client stateRequestValidationException
public void checkAccess(ClientState state)
CQLStatement
state
- the current client statepublic ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthorizationStatement
RequestValidationException
RequestExecutionException
Copyright © 2020 The Apache Software Foundation