public PlannerContext plan(HttpServletRequest req) throws SqlParseException, RelConversionException, ValidationException { synchronized (lock) { this.req = req; return plan(AuthorizationUtils.authenticationResultFromRequest(req)); } }
final AuthenticationResult authenticationResult = AuthorizationUtils.authenticationResultFromRequest(request);
final AuthenticationResult authenticationResult = authenticationResultFromRequest(request);
authenticationResultFromRequest(request), resourceActions, authorizerMapper
/** * Authorize the query. Will return an Access object denoting whether the query is authorized or not. * * @param req HTTP request object of the request. If provided, the auth-related fields in the HTTP request * will be automatically set. * * @return authorization result */ public Access authorize(HttpServletRequest req) { transition(State.INITIALIZED, State.AUTHORIZING); return doAuthorize( AuthorizationUtils.authenticationResultFromRequest(req), AuthorizationUtils.authorizeAllResourceActions( req, Iterables.transform( baseQuery.getDataSource().getNames(), AuthorizationUtils.DATASOURCE_READ_RA_GENERATOR ), authorizerMapper ) ); }
final AuthenticationResult authenticationResult = AuthorizationUtils.authenticationResultFromRequest(request);
final AuthenticationResult authenticationResult = authenticationResultFromRequest(request);
authenticationResultFromRequest(request), resourceActions, authorizerMapper
/** * Authorize the query. Will return an Access object denoting whether the query is authorized or not. * * @param req HTTP request object of the request. If provided, the auth-related fields in the HTTP request * will be automatically set. * * @return authorization result */ public Access authorize(HttpServletRequest req) { transition(State.INITIALIZED, State.AUTHORIZING); return doAuthorize( AuthorizationUtils.authenticationResultFromRequest(req), AuthorizationUtils.authorizeAllResourceActions( req, Iterables.transform( baseQuery.getDataSource().getNames(), AuthorizationUtils.DATASOURCE_READ_RA_GENERATOR ), authorizerMapper ) ); }