code: public Access authorize(final AuthenticationResult authenticationResult)
    {
      transition(State.INITIALIZED, State.AUTHORIZING);
      return doAuthorize(
          authenticationResult,
          AuthorizationUtils.authorizeAllResourceActions(
              authenticationResult,
              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 authenticationResult authentication result indicating the identity of the requester
  
  @return authorization result