code: 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
          )
      );
    }
docs: 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