Пример #1
0
 /**
  * Queries the underlying backend policies.
  *
  * @param context The request context.
  * @param request The query request to execute on the backend policies.
  * @param resultHandler The handler for results.
  * @return A promise contain the {@code QueryResult} and list of underlying policies or a {@code
  *     ResourceException} if the query failed.
  */
 public Promise<QueryResult, ResourceException> queryPolicies(
     ServerContext context, QueryRequest request, QueryResultHandler resultHandler) {
   return policyResource.handleQuery(context, request, resultHandler);
 }
Пример #2
0
 /**
  * Queries the underlying backend policies.
  *
  * @param context The request context.
  * @param request The query request to execute on the backend policies.
  * @return A promise contain the {@code QueryResult} and list of underlying policies or a {@code
  *     ResourceException} if the query failed.
  */
 public Promise<Pair<QueryResult, List<Resource>>, ResourceException> queryPolicies(
     ServerContext context, QueryRequest request) {
   return policyResource.handleQuery(context, request);
 }