public class ListRolesStatement extends AuthorizationStatement
ParsedStatement.Prepared
Constructor and Description |
---|
ListRolesStatement() |
ListRolesStatement(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) |
protected ResultMessage |
formatResults(java.util.List<RoleResource> sortedRoles) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms, maybeCorrectResource, prepare
getBoundVariables, getFunctions, setBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public ListRolesStatement()
public ListRolesStatement(RoleName grantee, boolean recursive)
public void validate(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void checkAccess(ClientState state) throws InvalidRequestException
CQLStatement
state
- the current client stateInvalidRequestException
public ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
execute
in class AuthorizationStatement
RequestValidationException
RequestExecutionException
protected ResultMessage formatResults(java.util.List<RoleResource> sortedRoles)
Copyright © 2016 The Apache Software Foundation